forked from TrueCloudLab/certificates
Update hsm dockerfile as well
This commit is contained in:
parent
844cfd3bad
commit
8242895909
2 changed files with 6 additions and 5 deletions
|
@ -24,6 +24,7 @@ USER step
|
||||||
|
|
||||||
ENV CONFIGPATH="/home/step/config/ca.json"
|
ENV CONFIGPATH="/home/step/config/ca.json"
|
||||||
ENV PWDPATH="/home/step/secrets/password"
|
ENV PWDPATH="/home/step/secrets/password"
|
||||||
|
ENV PROVISIONER_PWDPATH="/home/step/secrets/provisioner_password"
|
||||||
|
|
||||||
VOLUME ["/home/step"]
|
VOLUME ["/home/step"]
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
@ -32,4 +33,4 @@ HEALTHCHECK CMD step ca health 2>/dev/null | grep "^ok" >/dev/null
|
||||||
COPY docker/entrypoint.sh /entrypoint.sh
|
COPY docker/entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
||||||
CMD exec /usr/local/bin/step-ca --password-file $PWDPATH $CONFIGPATH
|
CMD exec /usr/local/bin/step-ca --password-file $PWDPATH --provisioner-password-file $PROVISIONER_PWDPATH $CONFIGPATH
|
||||||
|
|
|
@ -63,10 +63,6 @@ if [ -f /usr/sbin/pcscd ]; then
|
||||||
/usr/sbin/pcscd
|
/usr/sbin/pcscd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "${STEPPATH}/config/ca.json" ]; then
|
|
||||||
init_if_possible
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f "${STEPPATH}/password" ]; then
|
if [ ! -f "${STEPPATH}/password" ]; then
|
||||||
generate_password > "${STEPPATH}/password"
|
generate_password > "${STEPPATH}/password"
|
||||||
fi
|
fi
|
||||||
|
@ -75,4 +71,8 @@ if [ ! -f "${STEPPATH}/provisioner_password" ]; then
|
||||||
generate_password > "${STEPPATH}/provisioner_password"
|
generate_password > "${STEPPATH}/provisioner_password"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "${STEPPATH}/config/ca.json" ]; then
|
||||||
|
init_if_possible
|
||||||
|
fi
|
||||||
|
|
||||||
exec "${@}"
|
exec "${@}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue