add health check to Dockerfile
anneferger opened this issue · comments
See TEIC/oxgarage#30
In Dockerfile, using Info endpoint
HEALTHCHECK CMD curl --fail http://localhost/api/healthcheck || exit 1
HEALTHCHECK CMD curl --fail http://localhost:8080/ege-webservice/Info || exit 1
Could be more customized but is working if container is not responding.
@peterstadler close this or add some more checks?
I think this is good enough for now. If we discover failures that are not caught by this check, we'll improve it later