8000 Standardize the entrypoint across containers · Issue #75 · GSA/catalog-app · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 21, 2021. It is now read-only.

Standardize the entrypoint across containers #75

Open
adborden opened this issue Aug 3, 2018 · 3 comments
Open

Standardize the entrypoint across containers #75

adborden opened this issue Aug 3, 2018 · 3 comments
Labels

Comments

@adborden
Copy link
Contributor
adborden commented Aug 3, 2018

Conversation to address the entrypoint for our containers.

@adborden
Copy link
Contributor Author
adborden commented Aug 3, 2018

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.

@adborden
Copy link
Contributor Author
adborden commented Aug 3, 2018

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.

@adborden
Copy link
Contributor Author
adborden commented Aug 3, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0