Browse code

Dockerfile.s390x: Use binary go package

We finally have a s390x binary tarball for go on "storage.googleapis.com".
So use this instead of bootstrapping with gccgo.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>

Michael Holzheu authored on 2016/09/09 02:47:09
Showing 1 changed files
... ...
@@ -95,20 +95,11 @@ RUN cd /usr/local/lvm2 \
95 95
 	&& make install_device-mapper
96 96
 # see https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL
97 97
 
98
-## BUILD GOLANG 1.7 with existing gccgo
99
-
100 98
 ENV GO_VERSION 1.7.1
101
-ENV GO_DOWNLOAD_URL https://golang.org/dl/go${GO_VERSION}.src.tar.gz
102
-ENV GOROOT_BOOTSTRAP /usr/local
103
-
104
-RUN curl -fsSL "$GO_DOWNLOAD_URL" -o golang.tar.gz \
105
-    && tar -C /usr/src -xzf golang.tar.gz \
106
-    && rm golang.tar.gz \
107
-    && cd /usr/src/go/src && ./make.bash 2>&1
108
-
109
-ENV GOROOT_BOOTSTRAP /usr/src/
99
+RUN curl -fsSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-s390x.tar.gz" \
100
+	| tar -xzC /usr/local
110 101
 
111
-ENV PATH /usr/src/go/bin/:/go/bin:$PATH
102
+ENV PATH /go/bin:/usr/local/go/bin:$PATH
112 103
 ENV GOPATH /go:/go/src/github.com/docker/docker/vendor
113 104
 
114 105
 # Dependency for golint