Skip to content

Support sub-directories within docker-entrypoint-initdb.d #605

Closed
@lloydpowell88

Description

@lloydpowell88

As it stands, the docker-entrypoint-initdb.d folder will only run the scripts from it's root.

I have a scenario where it would be extremely tidy for it to run all scripts from directories placed in the root also (recursively would be nice too but probably not required).

This makes the managing of a multi-version application deployed in multiple environments much more simplistic. It allows us to group our scripts by folders making them more understandable, readable and easier to avoid the alphabetical ordering of all the scripts (this could be done by the grouping folders).

I can make this change easily enough myself and more than happy to create a pull request to see if others would find it beneficial also.

What do you think team?

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions