Open
Description
For instance, I have some scripts that set up some users and such using ENV variables passed to docker run
. I want to make sure that if those variables were not passed to the docker run
then the initialization process halts. Currently, the data directory is created and can be left in some undetermined state if one of the entrypoint scripts fails.
Should it perhaps create the data directory in a temporary location first, and when all scripts complete successfully - move it to the $PG_DATA
location and clean everything up if those scripts fail?