From 68634a389b7404952ec24ad836f9ef99438005e8 Mon Sep 17 00:00:00 2001 From: Matej Matuska Date: Tue, 2 Jul 2024 15:53:28 +0200 Subject: [PATCH] Add fake RHEL 10 container for local containerized tests As RHEL 10 UBI isn't available yet, use RHEL 9 UBI with Python 3.12 virtualenv. --- res/container-tests/Containerfile.ubi10 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/res/container-tests/Containerfile.ubi10 b/res/container-tests/Containerfile.ubi10 index 359d46b09..b6afa9008 100644 --- a/res/container-tests/Containerfile.ubi10 +++ b/res/container-tests/Containerfile.ubi10 @@ -1,12 +1,14 @@ -FROM registry.access.redhat.com/ubi8/ubi:latest +FROM registry.access.redhat.com/ubi9/ubi:latest VOLUME /payload RUN yum update -y && \ - yum install python3 python39 python3-virtualenv make -y && \ + yum install python3 python312 make -y && \ yum -y install python3-pip && \ python3 -m pip install --upgrade pip==20.3.4 +RUN pip install virtualenv + WORKDIR /payload ENTRYPOINT virtualenv testenv -p "/usr/bin/$PYTHON_VENV" && \ source testenv/bin/activate && \