Skip to content

Commit 06cca53

Browse files
committed
Dockerfile: remove GOMETALINTER_OPTS
This `ENV` was added to the Dockerfile in b96093f, when the repository used per-architecture Dockerfiles, and some architectures needed a different configuration. Now that we use a multi-arch Dockerfile, and CI uses a Jenkinsfile, we can remove this `ENV` from the Dockerfile, and set it in CI instead if needed. Also updated the wording and fixed linting issues in hack/validate/gometalinter Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit a464a3d) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent de3a04a commit 06cca53

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,6 @@ COPY --from=djs55/vpnkit@sha256:e508a17cfacc8fd39261d5b4e397df2b953690da577e2c98
281281

282282
ENV PATH=/usr/local/cli:$PATH
283283
ENV DOCKER_BUILDTAGS apparmor seccomp selinux
284-
# Options for hack/validate/gometalinter
285-
ENV GOMETALINTER_OPTS="--deadline=2m"
286284
WORKDIR /go/src/github.com/docker/docker
287285
VOLUME /var/lib/docker
288286
# Wrap all commands in the "docker-in-docker" script to allow nested containers

hack/validate/gometalinter

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ set -e -o pipefail
44
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55

66
# CI platforms differ, so per-platform GOMETALINTER_OPTS can be set
7-
# from a platform-specific Dockerfile, otherwise let's just set
7+
# in the Jenkinsfile, otherwise let's just set a
88
# (somewhat pessimistic) default of 10 minutes.
9-
: ${GOMETALINTER_OPTS=--deadline=10m}
9+
: "${GOMETALINTER_OPTS=--deadline=10m}"
1010

11+
# shellcheck disable=SC2086
1112
gometalinter \
1213
${GOMETALINTER_OPTS} \
13-
--config ${SCRIPTDIR}/gometalinter.json ./...
14+
--config "${SCRIPTDIR}/gometalinter.json" ./...

0 commit comments

Comments
 (0)