-
Notifications
You must be signed in to change notification settings - Fork 649
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
Comments
There is a entrypoint.sh for mongodb. Refer this |
@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 |
+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 |
it'd be great to have a hook in
entrypoint.sh
for running some pre-startup init scripts, for configuring db users etclike 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?
The text was updated successfully, but these errors were encountered: