Adds healthcheck instructions to the dockerfiles.
What does this MR do?
It adds a HEALTHCHECK
instruction to the dockerfiles. The HEALTHCHECK
instruction checks the return status of the embedded HTTP Statistics Server for Prometheus metrics. This exposes a health status for the docker container with can be checked via docker inspect --format='{{json .State.Health}}'
.
Why was this MR needed?
It would be very convenient to have the health status available when automating the deployment of gitlab-runner container.