diff --git a/Dockerfile b/Dockerfile index 2aecf523c7..23f11c3633 100644 --- a/Dockerfile +++ b/Dockerfile @@ -132,9 +132,6 @@ ENV DOCKER_CROSSPLATFORMS \ freebsd/amd64 freebsd/386 freebsd/arm \ windows/amd64 windows/386 -# (set an explicit GOARM of 5 for maximum compatibility) -ENV GOARM 5 - # This has been commented out and kept as reference because we don't support compiling with older Go anymore. # ENV GOFMT_VERSION 1.3.3 # RUN curl -sSL https://storage.googleapis.com/golang/go${GOFMT_VERSION}.$(go env GOOS)-$(go env GOARCH).tar.gz | tar -C /go/bin -xz --strip-components=2 go/bin/gofmt diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 9f8e80ae31..9084732e6f 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -65,14 +65,9 @@ RUN cd /usr/local/lvm2 \ # see https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL # Install Go -#ENV GO_VERSION 1.5.3 -# TODO update GO_TOOLS_COMMIT below when this updates to 1.5+ -ENV GO_VERSION 1.4.3 -RUN curl -fsSL "https://github.com/hypriot/golang-armbuilds/releases/download/v${GO_VERSION}/go${GO_VERSION}.linux-armv7.tar.gz" \ +ENV GO_VERSION 1.6 +RUN curl -fsSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-armv6l.tar.gz" \ | tar -xzC /usr/local -# temporarily using Hypriot's tarballs while we wait for official 1.6+ -#RUN curl -fsSL https://golang.org/dl/go${GO_VERSION}.linux-arm6.tar.gz \ -# | tar -xzC /usr/local ENV PATH /go/bin:/usr/local/go/bin:$PATH ENV GOPATH /go:/go/src/github.com/docker/docker/vendor @@ -84,9 +79,7 @@ ENV GOARM 7 # ENV GOFMT_VERSION 1.3.3 # RUN curl -sSL https://storage.googleapis.com/golang/go${GOFMT_VERSION}.$(go env GOOS)-$(go env GOARCH).tar.gz | tar -C /go/bin -xz --strip-components=2 go/bin/gofmt -#ENV GO_TOOLS_COMMIT 823804e1ae08dbb14eb807afc7db9993bc9e3cc3 -# TODO update this sha when we upgrade to Go 1.5+ -ENV GO_TOOLS_COMMIT 069d2f3bcb68257b627205f0486d6cc69a231ff9 +ENV GO_TOOLS_COMMIT 823804e1ae08dbb14eb807afc7db9993bc9e3cc3 # Grab Go's cover tool for dead-simple code coverage testing # Grab Go's vet tool for examining go code to find suspicious constructs # and help prevent errors that the compiler might not catch @@ -95,9 +88,7 @@ RUN git clone https://github.com/golang/tools.git /go/src/golang.org/x/tools \ && go install -v golang.org/x/tools/cmd/cover \ && go install -v golang.org/x/tools/cmd/vet # Grab Go's lint tool -#ENV GO_LINT_COMMIT 32a87160691b3c96046c0c678fe57c5bef761456 -# TODO update this sha when we upgrade to Go 1.5+ -ENV GO_LINT_COMMIT f42f5c1c440621302702cb0741e9d2ca547ae80f +ENV GO_LINT_COMMIT 32a87160691b3c96046c0c678fe57c5bef761456 RUN git clone https://github.com/golang/lint.git /go/src/github.com/golang/lint \ && (cd /go/src/github.com/golang/lint && git checkout -q $GO_LINT_COMMIT) \ && go install -v github.com/golang/lint/golint