Kubernetes doesn't apply HEALTHCHECK from a Dockerfile, so I pulled the logic into a script called liveness-probe.sh which is copied into the container, and then can be implemented directly by any container manager (docker, docker-compose, kubernetes, etc).
I don't get into the weeds of bash nor docker HEALTHCHECK often. I think this implementation is a bit easier to read and maintain.
If I'm not making a mistake, the current implementation of HEALTHCHECK as executed by docker-compose fails to a syntax error:
coverage: 100.0%. remained the same
when pulling c8323e723b8d300f7706984be1d6da5103e0b07c on gronka:liveness
into 728e78fb337ef68ea89328797d2968cef46ec735 on tethysplatform:main.
Continuing this discussion: https://github.com/tethysplatform/tethys/discussions/1018
3 goals here:
Kubernetes doesn't apply HEALTHCHECK from a Dockerfile, so I pulled the logic into a script called liveness-probe.sh which is copied into the container, and then can be implemented directly by any container manager (docker, docker-compose, kubernetes, etc).
I don't get into the weeds of bash nor docker HEALTHCHECK often. I think this implementation is a bit easier to read and maintain.
If I'm not making a mistake, the current implementation of HEALTHCHECK as executed by docker-compose fails to a syntax error: