|
@@ -74,8 +74,8 @@ RUN cd /usr/local/lvm2 \
|
|
# TODO install Go, using gccgo as GOROOT_BOOTSTRAP (Go 1.5+ supports ppc64le properly)
|
|
# TODO install Go, using gccgo as GOROOT_BOOTSTRAP (Go 1.5+ supports ppc64le properly)
|
|
# possibly a ppc64le/golang image?
|
|
# possibly a ppc64le/golang image?
|
|
|
|
|
|
-## BUILD GOLANG 1.6
|
|
|
|
-ENV GO_VERSION 1.6
|
|
|
|
|
|
+## BUILD GOLANG 1.5.3
|
|
|
|
+ENV GO_VERSION 1.5.3
|
|
ENV GO_DOWNLOAD_URL https://golang.org/dl/go${GO_VERSION}.src.tar.gz
|
|
ENV GO_DOWNLOAD_URL https://golang.org/dl/go${GO_VERSION}.src.tar.gz
|
|
ENV GO_DOWNLOAD_SHA256 a96cce8ce43a9bf9b2a4c7d470bc7ee0cb00410da815980681c8353218dcf146
|
|
ENV GO_DOWNLOAD_SHA256 a96cce8ce43a9bf9b2a4c7d470bc7ee0cb00410da815980681c8353218dcf146
|
|
ENV GOROOT_BOOTSTRAP /usr/local
|
|
ENV GOROOT_BOOTSTRAP /usr/local
|
|
@@ -129,12 +129,13 @@ RUN set -x \
|
|
# Install notary and notary-server
|
|
# Install notary and notary-server
|
|
ENV NOTARY_VERSION docker-v1.11-3
|
|
ENV NOTARY_VERSION docker-v1.11-3
|
|
RUN set -x \
|
|
RUN set -x \
|
|
|
|
+ && export GO15VENDOREXPERIMENT=1 \
|
|
&& export GOPATH="$(mktemp -d)" \
|
|
&& export GOPATH="$(mktemp -d)" \
|
|
&& git clone https://github.com/docker/notary.git "$GOPATH/src/github.com/docker/notary" \
|
|
&& git clone https://github.com/docker/notary.git "$GOPATH/src/github.com/docker/notary" \
|
|
&& (cd "$GOPATH/src/github.com/docker/notary" && git checkout -q "$NOTARY_VERSION") \
|
|
&& (cd "$GOPATH/src/github.com/docker/notary" && git checkout -q "$NOTARY_VERSION") \
|
|
- && GOPATH="$GOPATH/src/github.com/docker/notary/Godeps/_workspace:$GOPATH" \
|
|
|
|
|
|
+ && GOPATH="$GOPATH/src/github.com/docker/notary/vendor:$GOPATH" \
|
|
go build -o /usr/local/bin/notary-server github.com/docker/notary/cmd/notary-server \
|
|
go build -o /usr/local/bin/notary-server github.com/docker/notary/cmd/notary-server \
|
|
- && GOPATH="$GOPATH/src/github.com/docker/notary/Godeps/_workspace:$GOPATH" \
|
|
|
|
|
|
+ && GOPATH="$GOPATH/src/github.com/docker/notary/vendor:$GOPATH" \
|
|
go build -o /usr/local/bin/notary github.com/docker/notary/cmd/notary \
|
|
go build -o /usr/local/bin/notary github.com/docker/notary/cmd/notary \
|
|
&& rm -rf "$GOPATH"
|
|
&& rm -rf "$GOPATH"
|
|
|
|
|