Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Markdium-Kubernetes and Secrets Management in Cloud
FROM node:alpine
# download secrets-init binary
ENV SECRETS_INIT_VERSION=v0.2.1
ENV SECRETS_INIT_URL=https://github.com/doitintl/secrets-init/releases/download/v0.2.1/secrets-init_Linux_amd64.tar.gz
ENV SECRETS_INIT_SHA256=a2849460c650e9e7a29d9d0764e2b5fc679961e6667ad1c4416210fa791be29f
RUN mkdir -p /opt/secrets-init && cd /opt/secrets-init \
&& wget -qO secrets-init.tar.gz "$SECRETS_INIT_URL" \
&& echo "$SECRETS_INIT_SHA256 secrets-init.tar.gz" | sha256sum -c - \
&& tar -xzvf secrets-init.tar.gz \
&& mv secrets-init /usr/local/bin \
&& rm secrets-init.tar.gz
# set container entrypoint to secrets-init
ENTRYPOINT ["/usr/local/bin/secrets-init"]
# ... copy app dependencies and code
# ... define app CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment