forked from opendatahub-io/notebooks
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request opendatahub-io#620 from harshad16/switch-ubi
Switch base image to UBI for AMD rocm install
- Loading branch information
Showing
20 changed files
with
90 additions
and
154 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 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 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
6 changes: 3 additions & 3 deletions
6
...er/amd/pytorch/ubi9-python-3.9/Dockerfile → ...r/rocm/pytorch/ubi9-python-3.9/Dockerfile
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
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...hon-3.9/kustomize/base/kustomization.yaml → ...hon-3.9/kustomize/base/kustomization.yaml
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namePrefix: jupyter-amd-pytorch-ubi9-python-3-9- | ||
namePrefix: rocm-jupyter-pytorch-ubi9-python-3-9- | ||
commonLabels: | ||
app: jupyter-amd-pytorch-ubi9-python-3-9 | ||
app: rocm-jupyter-pytorch-ubi9-python-3-9 | ||
resources: | ||
- service.yaml | ||
- statefulset.yaml | ||
images: | ||
- name: quay.io/opendatahub/workbench-images | ||
newName: quay.io/opendatahub/workbench-images | ||
newTag: jupyter-amd-pytorch-ubi9-python-3.9 | ||
newTag: rocm-jupyter-pytorch-ubi9-python-3.9 |
File renamed without changes.
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...amd/tensorflow/ubi9-python-3.9/Dockerfile → ...ocm/tensorflow/ubi9-python-3.9/Dockerfile
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
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...hon-3.9/kustomize/base/kustomization.yaml → ...hon-3.9/kustomize/base/kustomization.yaml
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namePrefix: jupyter-amd-tensorflow-ubi9-python-3-9- | ||
namePrefix: rocm-jupyter-tensorflow-ubi9-python-3-9- | ||
commonLabels: | ||
app: jupyter-amd-tensorflow-ubi9-python-3-9 | ||
app: rocm-jupyter-tensorflow-ubi9-python-3-9 | ||
resources: | ||
- service.yaml | ||
- statefulset.yaml | ||
images: | ||
- name: quay.io/opendatahub/workbench-images | ||
newName: quay.io/opendatahub/workbench-images | ||
newTag: jupyter-amdtensorflow-ubi9-python-3.9 | ||
newTag: jupyter-pytorch-ubi9-python-3.9-2023a-20231002-4e9bbb3 |
File renamed without changes.
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
File renamed without changes.
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/rocm/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 |