Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 1183b98

Browse files
Merge pull request #801 from silvin-lubecki/bump-golang
Bump golang, alpine and CI tools
2 parents 2d284bf + 32732b3 commit 1183b98

File tree

14 files changed

+29
-24
lines changed

14 files changed

+29
-24
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
linters:
2+
run:
3+
concurrency: 2
4+
modules-download-mode: vendor
5+
skip-dirs:
6+
- vendor
27
enable-all: false
38
disable-all: true
49
enable:

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS cli-build
1+
FROM dockercore/golang-cross:1.13.10@sha256:ad2725ac9af0273f1de9bb85e166084d5e8d915df334154fe9c8bd9af912a90d AS cli-build
22
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
33
ARG CLI_CHANNEL=stable
4-
ARG CLI_VERSION=19.03.5
4+
ARG CLI_VERSION=19.03.8
55

6-
RUN apt-get install -y -q --no-install-recommends \
6+
RUN apt-get update && apt-get install -y -q --no-install-recommends \
77
coreutils \
88
util-linux \
99
uuid-runtime
@@ -21,7 +21,7 @@ ARG GOPROXY
2121
RUN make binary-windows
2222

2323
# main dev image
24-
FROM golang:1.13.3 AS dev
24+
FROM golang:1.13.10 AS dev
2525

2626
RUN apt-get update && apt-get install -y -q --no-install-recommends \
2727
coreutils \
@@ -35,7 +35,7 @@ ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/
3535
ARG DEP_VERSION=v0.5.4
3636
RUN curl -o /usr/bin/dep -L https://github.com/golang/dep/releases/download/${DEP_VERSION}/dep-linux-amd64 && \
3737
chmod +x /usr/bin/dep
38-
ARG GOTESTSUM_VERSION=v0.3.4
38+
ARG GOTESTSUM_VERSION=v0.4.2
3939
ARG GOPROXY
4040
RUN mkdir $GOPATH/src/gotest.tools && \
4141
git clone -q https://github.com/gotestyourself/gotestsum $GOPATH/src/gotest.tools/gotestsum && \

Dockerfile.invocation-image

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ARG ALPINE_VERSION=3.10.3
1+
ARG ALPINE_VERSION=3.11.5
22

3-
FROM golang:1.13.2 AS build
3+
FROM golang:1.13.10 AS build
44

55
RUN apt-get update -qq && apt-get install -y -q --no-install-recommends \
66
coreutils \

Dockerfile.lint

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
ARG ALPINE_VERSION=3.10
2-
ARG GO_VERSION=1.12.9
1+
ARG ALPINE_VERSION=3.11
2+
ARG GO_VERSION=1.13.10
33

44
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION}
55
RUN apk add --no-cache \
66
curl \
77
git \
88
make \
9-
coreutils
9+
coreutils \
10+
build-base
1011

1112
RUN GO111MODULE=on go get \
12-
github.com/golangci/golangci-lint/cmd/golangci-lint@v1.16.0 \
13+
github.com/golangci/golangci-lint/cmd/golangci-lint@v1.23.0 \
1314
&& rm -rf /go/src/* /go/pkg/*
1415

1516
WORKDIR /go/src/github.com/docker/app

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ test: test-unit test-e2e ## run all tests
6767

6868
lint: ## run linter(s)
6969
@echo "Linting..."
70-
@golangci-lint run ./...
70+
golangci-lint run --verbose --print-resources-usage --timeout 10m0s ./...
7171

7272
test-e2e: bin/$(BIN_NAME) ## run end-to-end tests
7373
@echo "Running e2e tests..."

docs/yaml/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.12-alpine AS base
1+
FROM golang:1.13-alpine AS base
22

33
ARG PROJECT=github.com/docker/app
44
ARG PROJECT_PATH=/go/src/${PROJECT}

e2e/helper_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,13 @@ func runWithDindSwarmAndRegistry(t *testing.T, todo func(dindSwarmAndRegistryInf
122122
todo(runner)
123123
}
124124

125-
func build(t *testing.T, cmd icmd.Cmd, dockerCli dockerCliCommand, ref, path string) string {
125+
func build(t *testing.T, cmd icmd.Cmd, dockerCli dockerCliCommand, ref, path string) {
126126
iidfile := fs.NewFile(t, "iid")
127127
defer iidfile.Remove()
128128
cmd.Command = dockerCli.Command("app", "build", "--iidfile", iidfile.Path(), "-t", ref, path)
129129
icmd.RunCmd(cmd).Assert(t, icmd.Success)
130-
bytes, err := ioutil.ReadFile(iidfile.Path())
130+
_, err := ioutil.ReadFile(iidfile.Path())
131131
assert.NilError(t, err)
132-
return string(bytes)
133132
}
134133

135134
// Container represents a docker container

e2e/testdata/cnab-parameters/cnab/build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG ALPINE_VERSION=3.10.3
1+
ARG ALPINE_VERSION=3.11.5
22

33
FROM alpine:${ALPINE_VERSION}
44

e2e/testdata/cnab-with-docker-status/cnab/build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG ALPINE_VERSION=3.10.3
1+
ARG ALPINE_VERSION=3.11.5
22

33
FROM alpine:${ALPINE_VERSION}
44

e2e/testdata/cnab-with-standard-status/cnab/build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG ALPINE_VERSION=3.10.3
1+
ARG ALPINE_VERSION=3.11.5
22

33
FROM alpine:${ALPINE_VERSION}
44

0 commit comments

Comments
 (0)