Skip to content

Commit

Permalink
Run health check more cleanly and more often
Browse files Browse the repository at this point in the history
  • Loading branch information
jcpunk authored and gdubicki committed Jun 6, 2022
1 parent 428d05b commit 92fc683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV PUPPETBOARD_STATUS_ENDPOINT /status

EXPOSE 80

HEALTHCHECK --interval=5m --timeout=5s --start-period=10s CMD python3 "import requests; import sys; sys.exit(not requests.get('http://localhost:${PUPPETBOARD_PORT}${PUPPETBOARD_URL_PREFIX:-}${PUPPETBOARD_STATUS_ENDPOINT}').ok)"
HEALTHCHECK --interval=1m --timeout=5s --start-period=10s CMD python3 -c "import requests; import sys; rc = 0 if requests.get('http://localhost:${PUPPETBOARD_PORT}${PUPPETBOARD_URL_PREFIX:-}${PUPPETBOARD_STATUS_ENDPOINT}').ok else 255; sys.exit(rc)"

ENV PUPPETBOARD_SETTINGS docker_settings.py
RUN mkdir -p /usr/src/app/
Expand Down

0 comments on commit 92fc683

Please sign in to comment.