From bd93560e90c3e1b2a4d638b12ea297942ab7275b Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Fri, 6 Sep 2024 06:02:12 -0400 Subject: [PATCH] [6.15.z] Base robottelo image on fedora/python-312 (#16252) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Base robottelo image on fedora/python-312 (#16248) (cherry picked from commit 22460799bdb5e271059c5365fdd298eaba11fe1d) Co-authored-by: Ondřej Gajdušek --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 540ce556f4..9fdb18421d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,15 @@ -FROM fedora:38 +FROM quay.io/fedora/python-312:latest MAINTAINER https://github.com/SatelliteQE -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv +ENV PYCURL_SSL_LIBRARY=openssl \ + ROBOTTELO_DIR="${HOME}/robottelo" -RUN dnf install -y gcc git make cmake libffi-devel openssl-devel python3-devel \ - redhat-rpm-config which libcurl-devel libxml2-devel +COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv -COPY / /robottelo/ -WORKDIR /robottelo +USER 1001 +COPY --chown=1001:0 / ${ROBOTTELO_DIR} -ENV PYCURL_SSL_LIBRARY=openssl -ENV UV_SYSTEM_PYTHON=1 +WORKDIR "${ROBOTTELO_DIR}" RUN uv pip install -r requirements.txt CMD make test-robottelo