mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-03-24 06:05:19 +01:00
Update Vault to 0.5.3 (#142)
This updates vault to 0.5.3, and includes some optimizations: - GO15VENDOREXPERIMENT is no longer needed, as the Dockerfile uses Go 1.6+ - Added XC_OSARCH to prevent building all possible OS/Arch combinations during build Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
0919fab92a
commit
f34447ac22
@ -1,17 +1,16 @@
|
|||||||
# use alpine edge for go 1.6
|
# use alpine edge for go 1.6
|
||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
MAINTAINER Jessica Frazelle <jess@mesosphere.com>
|
||||||
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
ENV GO15VENDOREXPERIMENT 1
|
|
||||||
|
|
||||||
RUN apk update && apk add \
|
RUN apk update && apk add \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
ENV VAULT_VERSION v0.5.2
|
ENV VAULT_VERSION v0.5.3
|
||||||
|
|
||||||
RUN buildDeps=' \
|
RUN buildDeps=' \
|
||||||
bash \
|
bash \
|
||||||
@ -31,7 +30,7 @@ RUN buildDeps=' \
|
|||||||
&& git clone --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \
|
&& git clone --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \
|
||||||
&& cd /go/src/github.com/hashicorp/vault \
|
&& cd /go/src/github.com/hashicorp/vault \
|
||||||
&& go get github.com/mitchellh/gox \
|
&& go get github.com/mitchellh/gox \
|
||||||
&& XC_ARCH="amd64" XC_OS="linux" make bin \
|
&& XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" make bin \
|
||||||
&& mv bin/vault /usr/bin/ \
|
&& mv bin/vault /usr/bin/ \
|
||||||
&& apk del $buildDeps \
|
&& apk del $buildDeps \
|
||||||
&& rm -rf /var/cache/apk/* \
|
&& rm -rf /var/cache/apk/* \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user