-
Notifications
You must be signed in to change notification settings - Fork 0
Continuous Integration (CI)
Arnaud Poncet-Montanges edited this page Feb 4, 2025
·
2 revisions
We use GitHub actions as the most popular pipelines for continuous integration. It enables us for every pull request and every change or release to create necessary assets (datamodel dumps, qgs project, documentation, ...)
The command docker compose up -d --build
does the following:
-
docker compose up
: Builds, (re)creates, starts, and attaches to containers for a service. -
-d
: Runs the containers in detached mode (in the background). -
--build
: Forces the rebuild of the images before starting the containers.
The command docker compose exec db init_db.sh wait
executes the init_db.sh
script inside the db
container and waits for the script to complete. Here is a detailed explanation:
-
docker compose exec
: This command allows you to run commands inside running containers defined in adocker-compose.yml
file. -
db
: This is the name of the service in thedocker-compose.yml
file where the command should be executed. -
init_db.sh
: This is the script being executed inside thedb
container. -
wait
: This part of the command indicates that Docker will wait for theinit_db.sh
script to finish executing before returning control.
To resolve any issues with this command, ensure that:
- The
init_db.sh
script is present inside thedb
container. - The script has the correct execution permissions.
- The
db
service is properly defined and running in thedocker-compose.yml
file.
If the script is not found or there are access issues, you may need to adjust the path or check the container's configuration.