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

Create "src" symlink for building notary with gcc 5
This commit is contained in:
Doug Davis 2016-04-25 11:50:00 -04:00
commit d03ba27b76

View file

@ -113,7 +113,7 @@ RUN set -x \
&& export GO15VENDOREXPERIMENT=1 \
&& export GOPATH="$(mktemp -d)" \
&& 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" && ln -s . vendor/src) \
&& GOPATH="$GOPATH/src/github.com/docker/notary/vendor:$GOPATH" \
go build -o /usr/local/bin/notary-server github.com/docker/notary/cmd/notary-server \
&& rm -rf "$GOPATH"