Created
October 5, 2021 20:24
-
-
Save tashian/2b6d29735d03bdf775cb442bfe923270 to your computer and use it in GitHub Desktop.
A MongoDB Dockerfile that bootstraps with a step-ca Certificate Authority for root CA trust, using the step command
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 smallstep/step-cli as step | |
FROM mongo | |
COPY --from=step /usr/local/bin/step /usr/local/bin/ | |
ARG CA_URL | |
ARG CA_FINGERPRINT | |
ENV CA_URL=${CA_URL} CA_FINGERPRINT=${CA_FINGERPRINT} | |
RUN step ca bootstrap --ca-url $CA_URL --fingerprint $CA_FINGERPRINT --install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CA_URL
andCA_FINGERPRINT
should be supplied as build args, eg.