Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle 2016-04-07 13:26:38 -07:00
parent 2b0af26ae9
commit a2858656e9
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,5 @@
FROM alpine # use alpine edge for go 1.6
FROM alpine:edge
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
ENV PATH /go/bin:/usr/local/go/bin:$PATH ENV PATH /go/bin:/usr/local/go/bin:$PATH
@ -10,7 +11,7 @@ RUN apk update && apk add \
curl \ curl \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
ENV CONSUL_VERSION v0.6.3 ENV CONSUL_VERSION v0.6.4
RUN buildDeps=' \ RUN buildDeps=' \
bash \ bash \

View File

@ -1,16 +1,17 @@
FROM alpine # use alpine edge for go 1.6
FROM alpine:edge
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.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 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.0 ENV VAULT_VERSION v0.5.2
RUN buildDeps=' \ RUN buildDeps=' \
bash \ bash \
@ -29,7 +30,7 @@ RUN buildDeps=' \
&& mkdir -p /go/src/github.com/hashicorp \ && 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 --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 \
&& make bootstrap \ && go get github.com/mitchellh/gox \
&& XC_ARCH="amd64" XC_OS="linux" make bin \ && XC_ARCH="amd64" XC_OS="linux" make bin \
&& mv bin/vault /usr/bin/ \ && mv bin/vault /usr/bin/ \
&& apk del $buildDeps \ && apk del $buildDeps \