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

Howto customize this docker image? #4

Open
jekkos opened this issue Jan 8, 2016 · 0 comments
Open

Howto customize this docker image? #4

jekkos opened this issue Jan 8, 2016 · 0 comments

Comments

@jekkos
Copy link

jekkos commented Jan 8, 2016

Could you suggest any best practice on customizing this docker image? Currently I'm trying to make a Dockerfile that deploys my webapplication automatically with database initialized.

I've tried another Dockerfile first but they start a script from the container's filesystem to do the initial initialization. This means that the container cannot be rebuilt without committing to the container itself and that I'm obliged to modify that script as to do my own stuf as well.

In your case the processes are started in foreground but at first sight there is no easy way to hook in my own mysql init command. I could of course just copy paste your Dockerfile contents into mine.

On the other hand it would be nice to be able to use the FROM .. statement and then customize using my own mysql code to init the db.

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

1 participant