Skip to content

Support dynamic loading of additional entrypoint scripts (entrypoint.d pattern) #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
AaronMcHale opened this issue Feb 9, 2025 · 0 comments
Open
1 task done
Labels
kind/proposal a proposal that needs to be discussed.

Comments

@AaronMcHale
Copy link

AaronMcHale commented Feb 9, 2025

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.

What did you expect to see?

A common pattern across docker images is the /entrypoint.d directory, which allows for dynamically loading additional shell scripts during container start-up without having to replace the entrypoint script provided.

For example, the nginx image provides this support in their entrypoint script. Nginx's docker-entrypoint.sh script looks for the /docker-entrypoint.d directory, and if it contains any scripts, those will be executed. The nginx docker repository provides scripts which will be loaded by default.

In my specific case, one of the things I'd like to do on container start-up is to generate my own default TLS certificate on start-up, this would be easily done using a entrypoint script, and having support for /entrypoint.d (or /docker-entrypoint.d) would mean I don't have to override the entrypoint script provided.

@AaronMcHale AaronMcHale changed the title Support dynamically loading additional entrypoint scripts Support dynamical loading of additional entrypoint scripts (entrypoint.d pattern) Feb 9, 2025
@AaronMcHale AaronMcHale changed the title Support dynamical loading of additional entrypoint scripts (entrypoint.d pattern) Support dynamic loading of additional entrypoint scripts (entrypoint.d pattern) Feb 9, 2025
@emilevauge emilevauge added the kind/proposal a proposal that needs to be discussed. label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/proposal a proposal that needs to be discussed.
Projects
None yet
Development

No branches or pull requests

2 participants