iproute/tests/Containerfile
Andrea Claudi 99bcf6c067 Add image-mode testing
Provide a Containerfile to build the container to test iproute, and an
ad-hoc test plan for image-mode. Use testing-farm to test it.

Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
2025-03-31 23:59:45 +02:00

31 lines
886 B
Docker

# Choose nightly base image from https://images.paas.redhat.com/repository/bootc/rhel-bootc?tab=tags
FROM images.paas.redhat.com/bootc/rhel-bootc:latest-9.6
# Add nightly compose repo into container image to install iproute
RUN cat <<EOF >> /etc/yum.repos.d/rhel-9.repo
[rhel96-baseos]
name=rhel96-baseos
baseurl=http://download-node-02.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.6/compose/BaseOS/\$basearch/os/
enabled=1
gpgcheck=0
repo_gpgcheck=0
[rhel96-appstream]
name=rhel96-appstream
baseurl=http://download-node-02.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.6/compose/AppStream/\$basearch/os/
enabled=1
gpgcheck=0
repo_gpgcheck=0
[epel9]
name=epel9
baseurl=https://dl.fedoraproject.org/pub/epel/9/Everything/\$basearch/
enabled=1
gpgcheck=0
repo_gpgcheck=0
EOF
# Install packages from nightly compose
RUN dnf -y install iproute && \
dnf clean all