Skip to content

Commit

Permalink
add health check to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Jun 28, 2017
1 parent 1edf211 commit 61aed2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,10 @@ ARG SHBLOG=logs/shib-idp
# Expose the port tomcat will be serving on
EXPOSE 8443

#establish a healthcheck command so that docker might know the container's true state
HEALTHCHECK --interval=2m --timeout=30s \
CMD curl -k -f https://127.0.0.1:8443/idp/status || exit 1


# Start tomcat/crond
CMD ["/usr/bin/startup.sh"]

0 comments on commit 61aed2c

Please sign in to comment.