From 08671cf6048fcd5747913a4ece2dbf0f8c96e8ca Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 10 Sep 2019 15:51:45 +0200 Subject: [PATCH] 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 --- start.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/start.sh b/start.sh index dd2888a..63f0bdb 100755 --- a/start.sh +++ b/start.sh @@ -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 -- GitLab