Skip to content

Create /docker-entrypoint-initdb.d directory by default #33

Closed
@mmarzantowicz

Description

@mmarzantowicz

Currently one needs to put at last two lines to install custom initialization script:

RUN mkdir /docker-entrypoint-initdb.d
COPY ./some-script.sh /docker-entrypoint-initdb.d/some-script.sh

There would be no harm to have empty /docker-entrypoint-initdb.d directory for user scripts but it would make extending images easier by reducing previous example to:

COPY ./some-script.sh /docker-entrypoint-initdb.d/some-script.sh

As a side effect, this change would also simplify docker-entrypoint.sh (one test less) but what is most important here, users will gain ability to just COPY their scripts without need to manage destination directory (which is already specified in docker-entrypoint.sh.)

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