]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
docker-compose: Exit after jobs are done
authorZack Cerza <zack@redhat.com>
Mon, 21 Mar 2022 19:39:57 +0000 (13:39 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 28 Mar 2022 21:31:40 +0000 (15:31 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
docs/docker-compose/start.sh
docs/docker-compose/teuthology.sh

index 9c71889af50848a505467e440dd69d02edf48858..25ae832a91bd82da2a447e3bb5d0376278239458 100755 (executable)
@@ -30,4 +30,9 @@ ssh-keygen -t ed25519 -N '' -f $SSH_PRIVKEY_PATH
 export SSH_PRIVKEY=$(cat $SSH_PRIVKEY_PATH)
 export SSH_PUBKEY=$(cat $SSH_PRIVKEY_PATH.pub)
 
-docker-compose up --build
+trap "docker-compose down" SIGINT
+docker-compose up \
+    --build \
+    --abort-on-container-exit \
+    --exit-code-from teuthology
+docker-compose down
\ No newline at end of file
index affaf82366cb26de5d3d6cf9048c60bbc0d06457..ea4e0a2cd88d3fea3362e44d65553bdeb0944724 100755 (executable)
@@ -22,5 +22,5 @@ teuthology-suite -v \
     /teuthology/custom_conf.yaml
 teuthology-dispatcher -v \
     --log-dir /teuthology/log \
-    --tube testnode
-tail -f /dev/null
\ No newline at end of file
+    --tube testnode \
+    --exit-on-empty-queue
\ No newline at end of file