-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch base image to UBI for AMD rocm install
- adjust the makefile with ubi change Signed-off-by: Harshad Reddy Nalla <[email protected]>
- Loading branch information
Showing
3 changed files
with
52 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Install ROCm AMD from: | ||
# https://github.com/ROCm/ROCm-docker/blob/master/dev/Dockerfile-centos-7-complete | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
LABEL name="odh-notebook-rocm-python-3.9" \ | ||
summary="ROCm Python 3.9 base image for ODH notebooks" \ | ||
description="ROCm Python 3.9 builder image based on UBI9 for ODH notebooks" \ | ||
io.k8s.display-name="ROCm Python 3.9 base image for ODH notebooks" \ | ||
io.k8s.description="ROCm Python 3.9 builder image based on UBI9 for ODH notebooks" \ | ||
authoritative-source-url="https://github.com/opendatahub-io/notebooks" \ | ||
io.openshift.build.commit.ref="main" \ | ||
io.openshift.build.source-location="https://github.com/opendatahub-io/notebooks/tree/main/amd/ubi9-python-3.9" \ | ||
io.openshift.build.image="quay.io/opendatahub/workbench-images:rocm-ubi9-python-3.9" | ||
|
||
USER 0 | ||
WORKDIR /opt/app-root/bin | ||
|
||
ARG ROCM_VERSION=6.1 | ||
ARG AMDGPU_VERSION=6.1 | ||
|
||
# Enable epel-release repositories | ||
|
||
# Install the ROCm rpms | ||
RUN echo "[ROCm]" > /etc/yum.repos.d/rocm.repo && \ | ||
echo "name=ROCm" >> /etc/yum.repos.d/rocm.repo && \ | ||
echo "baseurl=https://repo.radeon.com/rocm/rhel9/$ROCM_VERSION/main" >> /etc/yum.repos.d/rocm.repo && \ | ||
echo "enabled=1" >> /etc/yum.repos.d/rocm.repo && \ | ||
echo "gpgcheck=0" >> /etc/yum.repos.d/rocm.repo && \ | ||
echo "[amdgpu]" > /etc/yum.repos.d/amdgpu.repo && \ | ||
echo "name=amdgpu" >> /etc/yum.repos.d/amdgpu.repo && \ | ||
echo "baseurl=https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/rhel/9.4/main/x86_64" >> /etc/yum.repos.d/amdgpu.repo && \ | ||
echo "enabled=1" >> /etc/yum.repos.d/amdgpu.repo && \ | ||
echo "gpgcheck=0" >> /etc/yum.repos.d/amdgpu.repo && \ | ||
yum install -y rocm && \ | ||
yum clean all && rm -rf /var/cache/yum | ||
|
||
# Restore notebook user workspace | ||
USER 1001 | ||
WORKDIR /opt/app-root/src |