Skip to content

Own startup scripts like /docker-entrypoint-initdb.d regardless of $DATABASE_ALREADY_EXISTS #284

Closed
@esticle

Description

@esticle

I'm keen to run startup scripts on container restarts on existing (ie. not new) volumes.

I see that the docker-entrypoint.sh sadly only runs the docker_process_init_files function when $DATABASE_ALREADY_EXISTS=false so putting a script in /docker-entrypoint-initdb.d has no effect if you already have a volume with databases functioning. Is there an alternative to this that I am missing?

I tried looking upstream at the Ubuntu image and do not see a clear way there either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions