Skip to content

Allow multiple volumes to be mounted as init scripts for mysql #192

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
mtzmontiel opened this issue Jul 21, 2016 · 2 comments
Closed

Allow multiple volumes to be mounted as init scripts for mysql #192

mtzmontiel opened this issue Jul 21, 2016 · 2 comments

Comments

@mtzmontiel
Copy link

Currently this image loads only the first level on path:

 /docker-entrypoint-initdb.d/

So if some wanted to use multiple volumes mounted under that only the lowest level would be executed.

I want to use volumes or to order init scripts in a more meaningful manner:

/docker-entrypoint-initdb.d/00-create-schemas.sql
/docker-entrypoint-initdb.d/10-myschema-seed/10-schema-1.sql
/docker-entrypoint-initdb.d/20-myschema-seed/10-schema-2.sql
/docker-entrypoint-initdb.d/30-myschema-seed/10-schema-3.sql
@tianon
Copy link
Member

tianon commented Dec 26, 2017

Closing for the same reasons as the associated PR: #193

@tianon tianon closed this as completed Dec 26, 2017
@tianon
Copy link
Member

tianon commented Dec 26, 2017

(Suggested workaround is to drop a short .sh file instead which sources additional directories.)

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

2 participants