From 322d746e21e959d6a10e7e132916ab2173b34d4a Mon Sep 17 00:00:00 2001 From: JP Lehr Date: Fri, 10 Jan 2025 06:10:05 -0600 Subject: [PATCH] [BBots] Adds RHEL 8 docker for upstream buildbot This adds the RHEL 8 base image for the AMD upstream AMDGPU buildbots. --- upstream-buildbots/RHEL8/Dockerfile | 24 ++++++++++++++++++++++++ upstream-buildbots/RHEL8/prerequisites | 21 +++++++++++++++++++++ upstream-buildbots/RHEL8/rocm-6.3.repo | 7 +++++++ 3 files changed, 52 insertions(+) create mode 100644 upstream-buildbots/RHEL8/Dockerfile create mode 100644 upstream-buildbots/RHEL8/prerequisites create mode 100644 upstream-buildbots/RHEL8/rocm-6.3.repo diff --git a/upstream-buildbots/RHEL8/Dockerfile b/upstream-buildbots/RHEL8/Dockerfile new file mode 100644 index 000000000..48d867b03 --- /dev/null +++ b/upstream-buildbots/RHEL8/Dockerfile @@ -0,0 +1,24 @@ +FROM registry.access.redhat.com/ubi8/ubi:8.8 + +# ROCm release we want to run +COPY rocm-6.3.repo /etc/yum.repos.d/rocm.repo +RUN yum clean packages && yum clean all + +# Other utilities we need +COPY prerequisites /tmp/prerequisites +RUN yum install --disableplugin=subscription-manager -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm +RUN yum update --disableplugin=subscription-manager -y +RUN yum install --disableplugin=subscription-manager -y $(cat /tmp/prerequisites) + +# Install ROCm +RUN yum install --disableplugin=subscription-manager -y rocm-device-libs rocm-core rocminfo hsa-rocr-dev + +# Update the group id inside the container to match host (and get access to GPU) +RUN groupmod -g 109 render + +# Create buildbot worker user inside the container +RUN useradd --create-home -G video,render --shell /bin/bash botworker + +RUN update-alternatives --set python3 /usr/bin/python3.8 + +ENV PYTHONPATH=/home/botworker/.local/lib64/python3.8/site-packages:$PYTHONPATH diff --git a/upstream-buildbots/RHEL8/prerequisites b/upstream-buildbots/RHEL8/prerequisites new file mode 100644 index 000000000..c79e51029 --- /dev/null +++ b/upstream-buildbots/RHEL8/prerequisites @@ -0,0 +1,21 @@ +ccache +cmake +expat-devel +diffutils +gcc-c++ +git +gmp-devel +libatomic +libffi-devel +libquadmath-devel +libtool +ninja-build +procps-ng +python38 +python38-devel +python38-pip +rsync +systemd-devel +vim +wget +xz-devel diff --git a/upstream-buildbots/RHEL8/rocm-6.3.repo b/upstream-buildbots/RHEL8/rocm-6.3.repo new file mode 100644 index 000000000..b0eac4d04 --- /dev/null +++ b/upstream-buildbots/RHEL8/rocm-6.3.repo @@ -0,0 +1,7 @@ +[ROCm-6.3] +name=ROCm6.3 +baseurl=https://repo.radeon.com/rocm/el8/6.3/main +enabled=1 +priority=50 +gpgcheck=1 +gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key