MikeThomsen commented on a change in pull request #3266: NIFI-5955 add a Docker 
HEALTHCHECK
URL: https://github.com/apache/nifi/pull/3266#discussion_r251131798
 
 

 ##########
 File path: nifi-docker/dockerhub/Dockerfile
 ##########
 @@ -84,6 +84,8 @@ RUN echo "#!/bin/sh\n" > $NIFI_HOME/bin/nifi-env.sh
 # Web HTTP(s) & Socket Site-to-Site Ports
 EXPOSE 8080 8443 10000
 
+HEALTHCHECK CMD curl -fsSL http://$(hostname -i || echo 
localhost):${NIFI_WEB_HTTP_PORT}/nifi || exit 1
 
 Review comment:
   You're going to want to test this with SSL to make sure it's not brittle 
there.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to