Skip to content

hook for initialisation scripts #52

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

Closed
anentropic opened this issue Sep 16, 2015 · 3 comments
Closed

hook for initialisation scripts #52

anentropic opened this issue Sep 16, 2015 · 3 comments

Comments

@anentropic
Copy link

it'd be great to have a hook in entrypoint.sh for running some pre-startup init scripts, for configuring db users etc

like in the PostgreSQL one here:
https://github.com/docker-library/postgres/blob/cd294bf8dfdf4a74b2077aa6413fa579f9bf07de/9.3/docker-entrypoint.sh#L76

I'm happy to make a pull request based on above if you agree the approach?

@anilkun
Copy link

anilkun commented Sep 22, 2015

@anentropic
Copy link
Author

@anilkun yes the point is build a hook into that entrypoint script file

otherwise you have to copy and paste the entrypoint script into your project and work out how to write your own hook code

see my PR, they do the same thing in the Postgres image

@CpuID
Copy link

CpuID commented Jul 3, 2016

+1, the initdb.d approach is nice. mysql does the same thing as postgres mentioned above https://github.com/docker-library/mysql/blob/f7a67d7634a68d319988ad6f99729bfeaa84ceb2/5.6/docker-entrypoint.sh#L107-L115

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

No branches or pull requests

3 participants