Open MNThomson opened 2 months ago
What's the benefit of having those health checks @MNThomson ?
Could you please rebase the PR and resolve conflicts @MNThomson ?
I can chime in regards to benefits of health check - it enables modern reverse proxies such as Træfik to postpone routing traffic to unhealthy containers and monitoring services to listen and send notifications when container becomes unhealthy.
On Kubernetes environment, it is how K
knows when to restart the container or which one to route from service.
It's actually a good thing. :)
Thanks @flexchar . It seems that we could merge this once @MNThomson resolves the conflicts
Thanks @flexchar! Healthchecks help the container scheduler know when to recreate containers (and especially help in container dependency graphs).
Rebased @haaawk, should be good to go!
Context
Added a Docker
HEALTHCHECK
to both the production & dev Dockerfiles.Now ok, this bash is absolutely cursed and could be removed by just running
apt install curl
. I didn't install curl since no other apt packages are installed in the runtime image and I'm assuming we want to keep the production image small. If that's acceptable though, adding curl is probably a better route.Test
Modifying
docker-health.sh
to point to a port that clearly isn't running or to/doesnotexist
will cause the healthcheck to fail (to simulate the/health
endpoint not responding):