Browse code

Merge pull request #22118 from michael-holzheu/22007-s390x-fix-notary-build-for-gcc-v2

Create "src" symlink for building notary with gcc 5

Doug Davis authored on 2016/04/26 00:50:00
Showing 1 changed files
... ...
@@ -113,7 +113,7 @@ RUN set -x \
113 113
 	&& export GO15VENDOREXPERIMENT=1 \
114 114
 	&& export GOPATH="$(mktemp -d)" \
115 115
 	&& git clone https://github.com/docker/notary.git "$GOPATH/src/github.com/docker/notary" \
116
-	&& (cd "$GOPATH/src/github.com/docker/notary" && git checkout -q "$NOTARY_VERSION") \
116
+	&& (cd "$GOPATH/src/github.com/docker/notary" && git checkout -q "$NOTARY_VERSION" && ln -s . vendor/src) \
117 117
 	&& GOPATH="$GOPATH/src/github.com/docker/notary/vendor:$GOPATH" \
118 118
 		go build -o /usr/local/bin/notary-server github.com/docker/notary/cmd/notary-server \
119 119
 	&& rm -rf "$GOPATH"