]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Dockerfile: Split out entrypoint to teuthology.sh
authorZack Cerza <zack@redhat.com>
Thu, 20 Jan 2022 19:47:47 +0000 (12:47 -0700)
committerZack Cerza <zack@redhat.com>
Mon, 28 Mar 2022 21:28:37 +0000 (15:28 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
docs/docker-compose/Dockerfile
docs/docker-compose/teuthology.sh [new file with mode: 0755]

index 103b8a1a3b18ca25e99a529454021b86b32659be..e10fe7ed799a65df534b2af2fc4d6362f265a07a 100644 (file)
@@ -30,12 +30,5 @@ RUN \
     mkdir log && \
     chmod +x /teuthology/bootstrap && \
     ./bootstrap
-CMD echo "$SSH_PRIVKEY" > $HOME/.ssh/id_ed25519 && \
-    ./virtualenv/bin/teuthology-suite \
-    -v --ceph-repo https://github.com/ceph/ceph.git \
-    --suite-repo https://github.com/ceph/ceph.git \
-    -c master -m testnode --subset 9000/100000 --limit 1 \
-    --suite dummy \
-    --suite-branch master -p 75 --force-priority -n 100 && \
-    ./virtualenv/bin/teuthology-dispatcher --log-dir ./log --tube testnode ; \
-    tail -f /dev/null
+COPY teuthology.sh /
+ENTRYPOINT /teuthology.sh
\ No newline at end of file
diff --git a/docs/docker-compose/teuthology.sh b/docs/docker-compose/teuthology.sh
new file mode 100755 (executable)
index 0000000..9915c69
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/bash
+set -e
+# We don't want -x yet, in case the private key is sensitive
+echo "$SSH_PRIVKEY" > $HOME/.ssh/id_ed25519
+set -x
+./virtualenv/bin/teuthology-suite -v \
+    --ceph-repo https://github.com/ceph/ceph.git \
+    --suite-repo https://github.com/ceph/ceph.git \
+    -c master \
+    -m testnode \
+    --limit 1 \
+    -n 100 \
+    --suite dummy \
+    --suite-branch master \
+    --subset 9000/100000 \
+    -p 75 \
+    --force-priority
+./virtualenv/bin/teuthology-dispatcher --log-dir ./log --tube testnode
+tail -f /dev/null
\ No newline at end of file