1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/vault/Dockerfile

31 lines
744 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
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-07-18 09:30:30 +02:00
2017-12-12 11:29:22 +02:00
ENV VAULT_VER=0.9.0
ENV VAULT_URL=https://releases.hashicorp.com/vault/${VAULT_VER}/vault_${VAULT_VER}_linux_amd64.zip
ENV VAULT_MD5=6db0a01b144c73b0633bbcd69175cd2c
2015-07-18 09:30:30 +02:00
2016-04-15 03:34:16 +02:00
RUN set -xe \
&& apk add -U ca-certificates \
2017-12-12 11:29:22 +02:00
&& wget -O vault.zip $VAULT_URL \
&& echo "$VAULT_MD5 vault.zip" | md5sum -c \
&& unzip vault.zip -d /usr/bin/ \
2015-07-18 09:30:30 +02:00
&& chmod +x /usr/bin/vault \
2016-04-15 03:34:16 +02:00
&& apk del ca-certificates \
2017-12-12 11:29:22 +02:00
&& rm vault.zip /var/cache/apk/*
2015-07-18 09:30:30 +02:00
2017-12-12 11:29:22 +02:00
COPY ./data/etc /etc/vault
VOLUME /etc/vault /var/lib/vault /var/log/vault
2015-07-18 09:30:30 +02:00
EXPOSE 8200
2017-12-12 11:29:22 +02:00
ENV VAULT_ADDR=https://127.0.0.1:8200
ENV VAULT_SKIP_VERIFY=1
ENTRYPOINT ["vault"]
CMD ["server", "-config=/etc/vault/vault.hcl"]