You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: