Closed tailhook closed 3 years ago
This is kinda done. Changes are:
ONBUILD
fails, because it requires something to copy from, so it's not good. Removed that./edgedb-bootstrap.edgeql
or EDGEDB_BOOTSTRAP_COMMAND
and EDGEDB_USER
/ EDGEDB_PASSWORD
the problem is that the latter environment variables are used for edgedb
CLI in entrypoint script and if that user is not created the script fails. I'm not sure if we have to do something about this, though.~Also, I'm not sure why tests are hanging here. They work fine locally.~ Work fine now.
This is largely untested for now.
/edgedb-bootstrap.edgeql
exists, use it as--bootstrap-script
EDGEB_BOOTSTRAP_COMMAND
exists, pass it as--bootstrap-command
EDGEDB_PASSWORD_HASH
exists, createEDGEDB_USER
or set that password for useredgedb
(uses encoded password)EDGEDB_PASSWORD
exists, createEDGEDB_USER
or set password (this is to share settings in docker-compose.yaml easier)EDGEDB_DATABASE
is notedgedb
create that database/edgedb-bootstrap/*.sh
scripts after configuration above (and before restarting the database). Scripts are run asedgedb
user if container is run by root./edgedb-bootstrap/*.edgeql
scripts, all of them are executed in the context ofEDGEDB_DATABASE
.If
/dbschema
exists. Runedgedb migrate
as part of script.It's largely untested now. Will be testing it tomorrow.