From 400e6e7881fc037aedc0b66fa8b48b1f06534ac0 Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Fri, 19 Jan 2024 16:00:03 +0100 Subject: [PATCH] Introduce COPR and COPR_RPMS variables --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 59aee4b43..fd5e65ea2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,12 @@ RUN set -x && \ dnf -y distro-sync --repo copr:copr.fedorainfracloud.org:rpmsoftwaremanagement:dnf-nightly; \ fi +RUN set -x && \ + if [ -n "$COPR" ] && [ -n "$COPR_RPMS" ]; then \ + dnf -y copr enable $COPR; \ + dnf -y install $COPR_RPMS; \ + fi + # copy test suite COPY ./dnf-behave-tests/ /opt/ci/dnf-behave-tests