hadim / docker-omero

Set of Dockerfile to build a ready-to-use OMERO server
MIT License
15 stars 15 forks source link

wait for database user to be created before starting omero-web #6

Open thushw opened 7 years ago

hadim commented 7 years ago

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

thushw commented 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.