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>
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 \
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