better git clones

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle
2016-12-27 17:04:58 -08:00
parent 996f7a6367
commit 3e0fc7968f
22 changed files with 46 additions and 38 deletions

View File

@@ -24,7 +24,7 @@ RUN buildDeps=' \
set -x \
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
&& mkdir -p /go/src/github.com/hashicorp \
&& git clone --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \
&& git clone --depth 1 --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \
&& cd /go/src/github.com/hashicorp/vault \
&& go get github.com/mitchellh/gox \
&& XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" make bin \