Skip to content

Instantly share code, notes, and snippets.

@chiefy
Created June 25, 2016 22:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chiefy/f8ec43e6889c2d11c716bb030b248d7d to your computer and use it in GitHub Desktop.
Save chiefy/f8ec43e6889c2d11c716bb030b248d7d to your computer and use it in GitHub Desktop.
vault example dockerfile
FROM alpine:latest
ENV \
VAULT_VERSION=0.6.0
RUN \
export VAULT_ZIP=vault_${VAULT_VERSION}_linux_amd64.zip; \
apk update &&\
apk add curl &&\
curl -s https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_SHA256SUMS | grep linux_amd64 > /tmp/vaultsum &&\
curl -so /tmp/${VAULT_ZIP} https://releases.hashicorp.com/vault/${VAULT_VERSION}/${VAULT_ZIP} &&\
cd /tmp &&\
sha256sum -c ./vaultsum &&\
unzip -d /usr/local/bin /tmp/${VAULT_ZIP} &&\
rm -rf /tmp/* &&\
apk del curl
ENTRYPOINT /usr/local/bin/vault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment