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>
|
|
|
|
|
2015-09-29 12:46:44 +02:00
|
|
|
ENV VAULT_VER 0.3.0
|
2015-07-18 09:30:30 +02:00
|
|
|
ENV VAULT_URL http://dl.bintray.com/mitchellh/vault/vault_${VAULT_VER}_linux_amd64.zip
|
2015-09-29 12:46:44 +02:00
|
|
|
ENV VAULT_MD5 4fb2da2ffd7733a1cfeb6a97023e45d5
|
2015-07-18 09:30:30 +02:00
|
|
|
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
|
|
|
|
|
2015-07-18 10:24:47 +02:00
|
|
|
COPY vault /etc/vault
|
2015-07-18 09:30:30 +02:00
|
|
|
|
2015-07-18 11:22:17 +02:00
|
|
|
VOLUME /etc/vault /var/lib/vault
|
2015-07-18 09:30:30 +02:00
|
|
|
|
|
|
|
EXPOSE 8200
|
|
|
|
|
2015-07-18 10:32:56 +02:00
|
|
|
CMD ["vault", "server", "-config=/etc/vault/vault.hcl"]
|