Skip to content
Snippets Groups Projects
Commit 08671cf6 authored by jurgenhaas's avatar jurgenhaas
Browse files

Sleep after docker compose up in order to give the database time to start up

Implement new option to clean up containers after the event
parent 6b939f9b
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ function create {
if [[ -f "web/profiles/contrib/config_installer/config_installer.info.yml" ]]; then
# Start container
a d4d up
sleep 2
drush --no-interaction si config_installer
# Init site config values
......@@ -54,6 +55,12 @@ function create {
git ignore "/*.sql"
drush sql:dump --result-file ../db.sql
fi
# Cleanup
if [[ -n ${L3D_CLEANUP} ]]; then
docker-compose stop
docker-compose rm --force
fi
fi
fi
if [[ -n ${L3D_EXIT} ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment