Closed
Description
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
Labels
No labels