Skip to content

Extending DB initialization in docker-entrypoint.sh #22

Closed
@md5

Description

@md5

I'm working on creating a PostGIS container based on this one and ended up replacing the docker-entrypoint.sh with my own modified version in order to create a template_postgis database (cf. https://github.com/md5/docker-postgis/blob/master/docker-entrypoint.sh#L10-17).

I'd like to propose that docker-entrypoint.sh somehow be extended to allow derived images to do additional work when a new database is being initialized. I can provide a PR with a patch, assuming there's agreement that this is a desirable change. I'd probably default to using a /docker-entrypoint.d/ directory or something of that sort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions