Skip to content

add health check to Dockerfile #17

Merged
merged 1 commit into from
Jun 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]