Open thushw opened 7 years ago
I think that's a good idea. But I'm not sure what the health check should be looking for.
If the health check command tries to login to the server, we must be prepared for the user changing the omero config, so that might not work. Similarly we can't rely on even the credentials of the postgres user.
The issue with this solution is that root user with this password will not always exist. What does happen if the container is started over a previously created OMERO instance that does not have such a user/password ?
Maybe we should start using the new HEALTHCHECK feature of Docker : https://docs.docker.com/engine/reference/builder/#/healthcheck