Skip to content

Commit

Permalink
Added healthcheck in docker/dockerFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-agrawal committed Jul 5, 2024
1 parent 4dadf39 commit faa0eba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ RUN chmod -R 777 /etc/pki/tls/certs
RUN chmod -R 777 /var/
RUN chown -R spinnaker:spinnaker /var
USER spinnaker
HEALTHCHECK CMD curl --fail http://localhost:7002/health
CMD sleep 180s ; "/opt/clouddriver/bin/clouddriver"
1 change: 1 addition & 0 deletions docker/ubi8/Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ RUN chmod -R 777 /etc/pki/tls/certs
RUN chmod -R 777 /var/
RUN chown -R spinnaker:spinnaker /var
USER spinnaker
HEALTHCHECK CMD curl --fail http://localhost:7002/health
ENV SLEEP_TIME=10s
CMD sleep $SLEEP_TIME ; "/opt/clouddriver/bin/clouddriver"
#CMD sleep 180s ; "/opt/clouddriver/bin/clouddriver"
1 change: 1 addition & 0 deletions docker/ubi8/Dockerfile-fips
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,6 @@ RUN chmod -R 777 /etc/pki/tls/certs
RUN chmod -R 777 /var/
RUN chown -R spinnaker:spinnaker /var
USER spinnaker
HEALTHCHECK CMD curl --fail http://localhost:7002/health
ENV SLEEP_TIME=10s
CMD sleep $SLEEP_TIME ; "/opt/clouddriver/bin/clouddriver"

0 comments on commit faa0eba

Please sign in to comment.