Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BBots] Adds RHEL 8 docker for upstream buildbot #1216

Open
wants to merge 1 commit into
base: aomp-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions upstream-buildbots/RHEL8/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions upstream-buildbots/RHEL8/prerequisites
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions upstream-buildbots/RHEL8/rocm-6.3.repo
Original file line number Diff line number Diff line change
@@ -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