Skip to content

Commit

Permalink
Add fake RHEL 10 container for local containerized tests
Browse files Browse the repository at this point in the history
As RHEL 10 UBI isn't available yet, use RHEL 9 UBI with Python 3.12
virtualenv.
  • Loading branch information
matejmatuska committed Jul 2, 2024
1 parent e259e26 commit 68634a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions res/container-tests/Containerfile.ubi10
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down

0 comments on commit 68634a3

Please sign in to comment.