@cryptotaxi247 / kubo / commits / 6f9351a3c

Added the missing heathcheck for the container (#8429)

* Added heathcheck for the docker container

arjunraghurama committed Oct 8, 2021 at 20:57 UTC 6f9351a3cab48b359194a7b298b73188ffecc2a3
1 file changed +5
Dockerfile
+5
@@ -106,5 +106,10 @@ ENV IPFS_LOGGING ""
106 # 2. The API and Gateway are accessible from outside the container.
107 ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/start_ipfs"]
108
109 +# Heathcheck for the container
110 +# QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn is the CID of empty folder
111 +HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
112 + CMD ipfs dag stat /ipfs/QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn || exit 1
113 +
114 # Execute the daemon subcommand by default
115 CMD ["daemon", "--migrate=true"]