Change HEALTHCHECK to use step ca health. Change shell CMD exec to skip redundant /bin/sh -c

This commit is contained in:
Carl Tashian 2020-09-08 09:44:35 -07:00
parent 6ffc438ed1
commit 3b31c6d2f5

View file

@ -22,6 +22,6 @@ ENV PWDPATH="/home/step/secrets/password"
VOLUME ["/home/step"]
STOPSIGNAL SIGTERM
HEALTHCHECK CMD curl --cacert /home/step/certs/root_ca.crt -sSf https://localhost/health >/dev/null || exit 1
HEALTHCHECK CMD step ca health 2>/dev/null | grep "^ok" >/dev/null
CMD exec /bin/sh -c "/usr/local/bin/step-ca --password-file $PWDPATH $CONFIGPATH"
CMD exec /usr/local/bin/step-ca --password-file $PWDPATH $CONFIGPATH