2015-07-18 09:30:30 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for vault
|
|
|
|
#
|
|
|
|
|
2015-07-18 09:31:38 +02:00
|
|
|
FROM alpine
|
2017-05-08 01:05:07 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
2015-07-18 09:30:30 +02:00
|
|
|
|
2016-03-29 10:04:56 +02:00
|
|
|
ENV VAULT_VER 0.5.2
|
|
|
|
ENV VAULT_URL https://releases.hashicorp.com/vault/${VAULT_VER}/vault_${VAULT_VER}_linux_amd64.zip
|
|
|
|
ENV VAULT_MD5 7d0f546d19c8e7e1eb5f8856bfa4cc29
|
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
|
|
|
|
2016-04-15 03:34:16 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apk add -U ca-certificates \
|
|
|
|
&& wget -O $VAULT_FILE $VAULT_URL \
|
2015-07-18 09:30:30 +02:00
|
|
|
&& echo "$VAULT_MD5 $VAULT_FILE" | md5sum -c \
|
|
|
|
&& unzip $VAULT_FILE -d /usr/bin/ \
|
|
|
|
&& chmod +x /usr/bin/vault \
|
2016-04-15 03:34:16 +02:00
|
|
|
&& apk del ca-certificates \
|
|
|
|
&& rm $VAULT_FILE /var/cache/apk/*
|
2015-07-18 09:30:30 +02:00
|
|
|
|
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"]
|