Open adborden opened 6 years ago
IOOS uses phusion/baseimage as their base image which provides a my_init
script that acts as a real init process. This allows derivative images to drop init/configuration scripts in /etc/my_init.d
for standardized init.
Most of our entrypoints accept a --wait-for-dependencies
flag that triggers netcat to look for dependent web services. This is somewhat of an anti-pattern, because in most cases the app should be handling the re-connect, rather than startup script. A manual restart shouldn't be necessary to recover from a connection error.
Entrypoints should end with exec "$@"
so that you can pass shell commands to the container. The Dockerfile should contain a default CMD
that is appropriate so in most cases you don't need to pass a custom command.
Conversation to address the entrypoint for our containers.