Skip to content

Commit

Permalink
Change HEALTHCHECK to use step ca health. Change shell CMD exec
Browse files Browse the repository at this point in the history
… to skip redundant `/bin/sh -c`
  • Loading branch information
tashian committed Sep 8, 2020
1 parent 6ffc438 commit 3b31c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile.step-ca
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3b31c6d

Please sign in to comment.