Browse code

Merge pull request #21420 from icecrime/update_arm_build

Update Dockerfile.armhf

Vincent Demeester authored on 2016/03/24 00:27:53
Showing 2 changed files
... ...
@@ -132,9 +132,6 @@ ENV DOCKER_CROSSPLATFORMS \
132 132
 	freebsd/amd64 freebsd/386 freebsd/arm \
133 133
 	windows/amd64 windows/386
134 134
 
135
-# (set an explicit GOARM of 5 for maximum compatibility)
136
-ENV GOARM 5
137
-
138 135
 # This has been commented out and kept as reference because we don't support compiling with older Go anymore.
139 136
 # ENV GOFMT_VERSION 1.3.3
140 137
 # 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
... ...
@@ -65,14 +65,9 @@ RUN cd /usr/local/lvm2 \
65 65
 # see https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL
66 66
 
67 67
 # Install Go
68
-#ENV GO_VERSION 1.5.3
69
-# TODO update GO_TOOLS_COMMIT below when this updates to 1.5+
70
-ENV GO_VERSION 1.4.3
71
-RUN curl -fsSL "https://github.com/hypriot/golang-armbuilds/releases/download/v${GO_VERSION}/go${GO_VERSION}.linux-armv7.tar.gz" \
68
+ENV GO_VERSION 1.6
69
+RUN curl -fsSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-armv6l.tar.gz" \
72 70
 	| tar -xzC /usr/local
73
-# temporarily using Hypriot's tarballs while we wait for official 1.6+
74
-#RUN curl -fsSL https://golang.org/dl/go${GO_VERSION}.linux-arm6.tar.gz \
75
-#		| tar -xzC /usr/local
76 71
 ENV PATH /go/bin:/usr/local/go/bin:$PATH
77 72
 ENV GOPATH /go:/go/src/github.com/docker/docker/vendor
78 73
 
... ...
@@ -84,9 +79,7 @@ ENV GOARM 7
84 84
 # ENV GOFMT_VERSION 1.3.3
85 85
 # 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
86 86
 
87
-#ENV GO_TOOLS_COMMIT 823804e1ae08dbb14eb807afc7db9993bc9e3cc3
88
-# TODO update this sha when we upgrade to Go 1.5+
89
-ENV GO_TOOLS_COMMIT 069d2f3bcb68257b627205f0486d6cc69a231ff9
87
+ENV GO_TOOLS_COMMIT 823804e1ae08dbb14eb807afc7db9993bc9e3cc3
90 88
 # Grab Go's cover tool for dead-simple code coverage testing
91 89
 # Grab Go's vet tool for examining go code to find suspicious constructs
92 90
 # 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 \
95 95
 	&& go install -v golang.org/x/tools/cmd/cover \
96 96
 	&& go install -v golang.org/x/tools/cmd/vet
97 97
 # Grab Go's lint tool
98
-#ENV GO_LINT_COMMIT 32a87160691b3c96046c0c678fe57c5bef761456
99
-# TODO update this sha when we upgrade to Go 1.5+
100
-ENV GO_LINT_COMMIT f42f5c1c440621302702cb0741e9d2ca547ae80f
98
+ENV GO_LINT_COMMIT 32a87160691b3c96046c0c678fe57c5bef761456
101 99
 RUN git clone https://github.com/golang/lint.git /go/src/github.com/golang/lint \
102 100
 	&& (cd /go/src/github.com/golang/lint && git checkout -q $GO_LINT_COMMIT) \
103 101
 	&& go install -v github.com/golang/lint/golint