Skip to content
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

Request: Option to always rerun init scripts #955

Closed
nmguse-bighealth opened this issue Apr 27, 2022 · 1 comment
Closed

Request: Option to always rerun init scripts #955

nmguse-bighealth opened this issue Apr 27, 2022 · 1 comment
Labels
Request Request for image modification or feature

Comments

@nmguse-bighealth
Copy link

Requesting an option/ENV var flag that could be used to have the startup script always run docker_process_init_files /docker-entrypoint-initdb.d/*.

We've written our init scripts to be idempotent. We also sometimes we need to add things to them. To make this work across a team of engineers we wrote a script that we inject into the container that reruns the init scripts, and then have to have everyone run an arbitrary docker run command on their machine any time the init scripts change, so they get the necessary changes.

Getting many people across many teams to run a one-off command to resync their setup is quite a bit of cat herding, so it'd be great if we could just set this up to auto-re-init.

Maybe something like:

elif [ -n "$RERUN_INIT_SCRIPTS" ]; then
    docker_process_init_files /docker-entrypoint-initdb.d/*
@wglambert wglambert added the Request Request for image modification or feature label Apr 27, 2022
@tianon
Copy link
Member

tianon commented Apr 27, 2022

See also #173, #821, #191, #929 (one of which I think this is really a duplicate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request Request for image modification or feature
Projects
None yet
Development

No branches or pull requests

3 participants