Created
December 26, 2019 12:59
-
-
Save alexei-led/7efe25155c034ee1b978a2477b3224e4 to your computer and use it in GitHub Desktop.
Markdium-Kubernetes and Secrets Management in Cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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