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

pull/364/head
Carl Tashian 4 years ago
parent 6ffc438ed1
commit 3b31c6d2f5

@ -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

Loading…
Cancel
Save