Skip to content

Commit

Permalink
Merge pull request #17 from docker/noIntermediate
Browse files Browse the repository at this point in the history
add health check to Dockerfile
  • Loading branch information
pcaskey authored Jun 28, 2017
2 parents 2571f3e + 61aed2c commit b5d003f
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 b5d003f

Please sign in to comment.