Skip to content

Commit

Permalink
Add a health check to the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
egli authored and bertfrees committed Nov 2, 2017
1 parent c445d21 commit c946f36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Expand Up @@ -17,4 +17,6 @@ ENV PIPELINE2_LOCAL=false \
PIPELINE2_WS_AUTHENTICATION_KEY=clientid \
PIPELINE2_WS_AUTHENTICATION_SECRET=sekret
EXPOSE 8181
# for the healthcheck use PIPELINE2_HOST if defined. Otherwise use localhost
HEALTHCHECK --interval=30s --timeout=10s --start-period=1m CMD curl --fail http://${PIPELINE2_WS_HOST-localhost}:${PIPELINE2_WS_PORT:-8181}/${PIPELINE2_WS_PATH:-ws}/alive || exit 1
ENTRYPOINT ["/opt/daisy-pipeline2/bin/pipeline2"]

0 comments on commit c946f36

Please sign in to comment.