1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/vault/Dockerfile

27 lines
594 B
Docker
Raw Normal View History

2015-07-18 09:30:30 +02:00
#
# Dockerfile for vault
#
2015-07-18 09:31:38 +02:00
FROM alpine
2015-07-18 09:30:30 +02:00
MAINTAINER kev <noreply@datageek.info>
ENV VAULT_VER 0.2.0
ENV VAULT_URL http://dl.bintray.com/mitchellh/vault/vault_${VAULT_VER}_linux_amd64.zip
ENV VAULT_MD5 0ba0029ddccb737cd2dbb1f018136535
ENV VAULT_FILE vault.zip
2015-07-18 10:03:34 +02:00
ENV VAULT_ADDR https://127.0.0.1:8200
2015-07-18 09:30:30 +02:00
RUN wget -O $VAULT_FILE $VAULT_URL \
&& echo "$VAULT_MD5 $VAULT_FILE" | md5sum -c \
&& unzip $VAULT_FILE -d /usr/bin/ \
&& chmod +x /usr/bin/vault \
&& rm $VAULT_FILE
COPY vault.hcl /etc/
VOLUME /var/lib/vault
EXPOSE 8200
CMD ["vault", "server", "-config", "/etc/vault.hcl"]