Commit b9f8960be9160aad07a4fe0ffbe2c2f23e2e3585

Authored by George Vlahavas
1 parent 00ba623089

Stop containers after errors

Showing 1 changed file with 2 additions and 0 deletions

... ... @@ -50,6 +50,7 @@
50 50 echo "ERROR: Some containers have exited."
51 51 docker ps -a | grep "^CONTAINER\|/curex-local/kea_"
52 52 dump_logs
  53 + docker-compose -f docker-compose-jfrog.yml down
53 54 exit 1
54 55 fi
55 56 # count containers that are up
... ... @@ -67,6 +68,7 @@
67 68 if [ $((TIME_NOW - TIME_START)) -ge 600 ]; then
68 69 echo "ERROR: Timeout exceeded."
69 70 dump_logs
  71 + docker-compose -f docker-compose-jfrog.yml down
70 72 exit 2
71 73 fi
72 74 sleep 1