]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Dockerfile: Perform teuth setup later in process
authorZack Cerza <zack@redhat.com>
Mon, 17 Jan 2022 21:02:54 +0000 (14:02 -0700)
committerZack Cerza <zack@redhat.com>
Mon, 28 Mar 2022 21:28:37 +0000 (15:28 -0600)
Should greatly reduce the frequency of package installs during image
rebuilds.

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

index 45e731cbf5f8b1089753f31c437278b1a5c7be41..103b8a1a3b18ca25e99a529454021b86b32659be 100644 (file)
@@ -1,11 +1,6 @@
 FROM ubuntu:latest
 ENV DEBIAN_FRONTEND=nonintercative
-COPY . /teuthology
-COPY .teuthology.yaml ./root
-WORKDIR /teuthology
-RUN chmod +x /teuthology/bootstrap && \
-    mkdir ../archive_dir && \
-    mkdir log && \
+RUN \
     mkdir $HOME/.ssh && \
     touch $HOME/.ssh/id_ed25519 && \
     chmod 600 $HOME/.ssh/id_ed25519 && \
@@ -27,7 +22,14 @@ RUN apt-get update && \
     libyaml-dev \
     lsb-release && \
     apt-get clean all
-RUN ./bootstrap
+COPY . /teuthology
+COPY .teuthology.yaml ./root
+WORKDIR /teuthology
+RUN \
+    mkdir ../archive_dir && \
+    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 \