Skip to content

Howto customize this docker image? #4

Open
@jekkos

Description

@jekkos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions