Repository navigation
Conversation
|
We try to add as few "extra" features as possible and I think this one isn't really necessary. We already have the ability to run arbitrary SQL and shell scripts on first initialization. I think this would set a precedent for similar requests in MySQL and friends. I would be open to The difference in the $ # with proposed change
$ docker run -d -e DOCKER_INITDB_EXTRA_SQL="really complex sql; things;" -e ... mysql:8
$ # without proposed change
$ docker run -d -e EXTRA_SQL='really complex sql; things;' -e ... mysql:8 sh -c 'echo "$EXTRA_SQL" > /docker-entrypoint-initdb.d/00-custom.sql && exec docker-entrypoint.sh mysql'
$ # could even skip the environment variable altogether
$ docker run -d -e ... mysql:8 sh -c 'echo "really complex sql; things;" > /docker-entrypoint-initdb.d/00-custom.sql && exec docker-entrypoint.sh mysql' |
#175 (comment)