Skip to content

Commit 43ed1f0

Browse files
authored
[CI] Add a container for release builds (#19289)
Our public releases should satisfy these requirements - https://vfxplatform.com Among them - glibc 2.28. The best way to achieve it - is to use ASWF images, which already have the required env. I've created a container based on aswf/ci-base:2025.1. The original image already contains CUDA SDK, but not ROCm. So I've additionally installed it using https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/quick-start.html for RHEL 8.10.
1 parent 970e2ef commit 43ed1f0

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM docker.io/aswf/ci-base:2025.1
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
USER root
6+
7+
COPY scripts/create-sycl-user.sh /user-setup.sh
8+
RUN /user-setup.sh
9+
10+
# Install ROCm (for RHEL 8.10), see:
11+
# https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/quick-start.html
12+
RUN dnf -y install https://repo.radeon.com/amdgpu-install/6.4.1/rhel/8.10/amdgpu-install-6.4.60401-1.el8.noarch.rpm && \
13+
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
14+
rpm -e epel-release && \
15+
rpm -ivh epel-release-latest-8.noarch.rpm && \
16+
dnf install dnf-plugin-config-manager && \
17+
crb enable && \
18+
dnf -y install python3-setuptools python3-wheel && \
19+
usermod -a -G render,video sycl && \
20+
dnf -y install rocm && \
21+
dnf clean all && rm -rf /var/cache/dnf
22+
23+
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
24+
25+
USER sycl
26+
27+
ENTRYPOINT ["/docker_entrypoint.sh"]

devops/scripts/create-sycl-user.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ USER_ID=1001
1313
groupadd -g $USER_ID $USER_NAME && useradd $USER_NAME -u $USER_ID -g $USER_ID -m -s /bin/bash
1414
# Add user to video/irc groups so that it can access GPU
1515
usermod -aG video $USER_NAME
16-
usermod -aG irc $USER_NAME
16+
# check if the irc group exists
17+
if grep -q '^irc:' /etc/group; then
18+
usermod -aG irc $USER_NAME
19+
fi
1720

1821
# group 109 is required for user to access PVC card.
1922
groupadd -f -g 109 render

0 commit comments

Comments
 (0)