fix(ansible): Docker images role 73/41773/1
authorPeter Mikus <[email protected]>
Tue, 29 Oct 2024 12:48:24 +0000 (13:48 +0100)
committerPeter Mikus <[email protected]>
Tue, 29 Oct 2024 12:48:24 +0000 (13:48 +0100)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: Id0c07943ccf22e8983a86cdd2bde6c0b9a554450

fdio.infra.ansible/roles/docker_images/files/tg/Dockerfile

index 3ff0e21..3e55041 100644 (file)
@@ -46,6 +46,7 @@ RUN apt-get -q update \
         python3-dev \
         python3-pip \
         python3-setuptools \
+        python3-venv \
         python3-virtualenv \
         rdma-core \
         rsyslog \
@@ -69,6 +70,14 @@ RUN chown root:syslog /var/log \
 # Create directory structure
 RUN mkdir -p /var/run/sshd
 
+# CSIT PIP pre-cache
+RUN python3 -m venv venv \
+    && venv/bin/pip3 install --upgrade --no-cache-dir pip \
+    && venv/bin/pip3 install --upgrade setuptools \
+    && venv/bin/pip3 install --upgrade wheel \
+    && pip3 install \
+        PyYAML==6.0.1
+
 # Install AB
 RUN apt-get -q update \
  && apt-get install -y -qq \