From b9f8960be9160aad07a4fe0ffbe2c2f23e2e3585 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Thu, 18 Mar 2021 01:19:06 +0200 Subject: [PATCH] Stop containers after errors --- deploy.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy.sh b/deploy.sh index c78c820..12cc3e8 100755 --- a/deploy.sh +++ b/deploy.sh @@ -50,6 +50,7 @@ while true; do echo "ERROR: Some containers have exited." docker ps -a | grep "^CONTAINER\|/curex-local/kea_" dump_logs + docker-compose -f docker-compose-jfrog.yml down exit 1 fi # count containers that are up @@ -67,6 +68,7 @@ while true; do if [ $((TIME_NOW - TIME_START)) -ge 600 ]; then echo "ERROR: Timeout exceeded." dump_logs + docker-compose -f docker-compose-jfrog.yml down exit 2 fi sleep 1 -- 2.2.2