Skip to content

Commit

Permalink
For the healthcheck ping PIPELINE2_HOST if given
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Nov 1, 2017
1 parent 7d3fa3b commit 8c41fbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -17,5 +17,6 @@ ENV PIPELINE2_LOCAL=false \
PIPELINE2_AUTH_CLIENTKEY=clientid \
PIPELINE2_AUTH_CLIENTSECRET=sekret
EXPOSE 8181
HEALTHCHECK --interval=30s --timeout=10s --start-period=1m CMD curl --fail http://localhost:8181/ws/alive || exit 1
# for the healthcheck use PIPELINE2_HOST if defined. Otherwise use localhost
HEALTHCHECK --interval=30s --timeout=10s --start-period=1m CMD curl --fail http://${PIPELINE2_HOST:-localhost}:8181/ws/alive || exit 1
ENTRYPOINT ["/opt/daisy-pipeline2/bin/pipeline2"]

0 comments on commit 8c41fbe

Please sign in to comment.