]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
docker-compose: Move virtualenv outside repo
authorZack Cerza <zack@redhat.com>
Fri, 1 Apr 2022 17:28:41 +0000 (13:28 -0400)
committerZack Cerza <zack@redhat.com>
Wed, 13 Apr 2022 21:34:10 +0000 (15:34 -0600)
This will let us bind-mount a different copy of the repo at runtime,
which in turn allows us to use a different copy of teuthology without
having to rebuild the image, or re-bootstrap, if deps haven't changed.

Signed-off-by: Zack Cerza <zack@redhat.com>
docs/docker-compose/teuthology/Dockerfile
docs/docker-compose/teuthology/teuthology.sh

index 149e8aca56fcb407febae9ea34e1902dad20428d..fcc9341a60633ddcb8735c1f650282dd554437d1 100644 (file)
@@ -1,6 +1,7 @@
 FROM ubuntu:latest
 ARG SSH_PRIVKEY_FILE=id_ed25519
 ENV DEBIAN_FRONTEND=noninteractive
+ENV VENV=/venv
 RUN apt-get update && \
     apt-get install -y \
     git \
index edc377b54eb6f708406bf4056efdae8ce2661286..e9e32b0dfb8b96044dd19dedc606c03eac4eb776 100755 (executable)
@@ -3,7 +3,7 @@
 if [ -n "$SSH_PRIVKEY_FILE" ]; then
     echo "$SSH_PRIVKEY" > $HOME/.ssh/$SSH_PRIVKEY_FILE
 fi
-source /teuthology/virtualenv/bin/activate
+source $VENV/bin/activate
 set -x
 if [ -n "$TESTNODES" ]; then
     for node in $(echo $TESTNODES | tr , ' '); do