diff --git a/0.X/Dockerfile b/0.X/Dockerfile index 5a89207..dcfedee 100644 --- a/0.X/Dockerfile +++ b/0.X/Dockerfile @@ -10,7 +10,7 @@ RUN addgroup vault && \ adduser -S -G vault vault # Set up certificates, our base tools, and Vault. -RUN apk add --no-cache ca-certificates gnupg openssl libcap su-exec dumb-init && \ +RUN apk add --no-cache ca-certificates gnupg openssl libcap su-exec dumb-init run-parts && \ gpg --keyserver pgp.mit.edu --recv-keys 91A6E7F85D05C65630BEF18951852D87348FFC4C && \ mkdir -p /tmp/build && \ cd /tmp/build && \ @@ -53,6 +53,7 @@ EXPOSE 8200 # For production derivatives of this container, you shoud add the IPC_LOCK # capability so that Vault can mlock memory. COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh +ONBUILD COPY /docker-entrypoint.d/* /docker-entrypoint.d/ ENTRYPOINT ["docker-entrypoint.sh"] # By default you'll get a single-node development server that stores everything diff --git a/0.X/docker-entrypoint.sh b/0.X/docker-entrypoint.sh index a16d01a..05ed90c 100755 --- a/0.X/docker-entrypoint.sh +++ b/0.X/docker-entrypoint.sh @@ -96,4 +96,9 @@ if [ "$1" = 'vault' ]; then fi fi +DIR=/docker-entrypoint.d +if [ -d "$DIR" ]; then + /usr/bin/run-parts --verbose "$DIR" +fi + exec "$@"