Created
June 25, 2016 22:28
-
-
Save chiefy/f8ec43e6889c2d11c716bb030b248d7d to your computer and use it in GitHub Desktop.
vault example dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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