Skip to content

Commit

Permalink
Updated image manifests with AMD images for minimal, pytorch and tens…
Browse files Browse the repository at this point in the history
…orflow
  • Loading branch information
dibryant committed Aug 28, 2024
1 parent 5923bd6 commit 2a0f1c7
Show file tree
Hide file tree
Showing 9 changed files with 159 additions and 1 deletion.
17 changes: 16 additions & 1 deletion ci/check-params-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PARAMS_ENV_PATH="manifests/base/params.env"

# This value needs to be updated everytime we deliberately change number of the
# images we want to have in the `params.env` file.
EXPECTED_NUM_RECORDS=27
EXPECTED_NUM_RECORDS=30

# ---------------------------- DEFINED FUNCTIONS ----------------------------- #

Expand Down Expand Up @@ -225,6 +225,21 @@ function check_image_variable_matches_name_and_commitref() {
expected_commitref="release-2023b"
expected_build_name="codeserver-ubi9-python-3.9-amd64"
;;
odh-rocm-minimal-notebook-image-n)
expected_name="odh-notebook-jupyter-minimal-ubi9-python-3.9"
expected_commitref="2024a"
expected_build_name="rocm-jupyter-minimal-ubi9-python-3.9-amd64"
;;
odh-rocm-pytorch-notebook-image-n)
expected_name="odh-notebook-jupyter-rocm-pytorch-ubi9-python-3.9"
expected_commitref="2024a"
expected_build_name="rocm-jupyter-pytorch-ubi9-python-3.9-amd64"
;;
odh-rocm-tensorflow-notebook-image-n)
expected_name="odh-notebook-jupyter-rocm-tensorflow-ubi9-python-3.9"
expected_commitref="2024a"
expected_build_name="rocm-jupyter-tensorflow-ubi9-python-3.9-amd64"
;;
*)
echo "Unimplemented variable name: '${image_variable}'"
return 1
Expand Down
3 changes: 3 additions & 0 deletions manifests/base/commit.env
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ odh-codeserver-notebook-image-commit-n=bcbb42a
odh-codeserver-notebook-image-commit-n-1=92a1241
odh-habana-notebook-image-commit-n=bcbb42a
odh-habana-notebook-image-commit-n-1=92a1241
odh-rocm-minimal-notebook-image-commit-n=
odh-rocm-pytorch-notebook-image-commit-n=
odh-rocm-tensorflow-notebook-image-commit-n=
12 changes: 12 additions & 0 deletions manifests/base/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,15 @@ varReference:
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-codeserver-notebook-image-commit-n-1
- path: spec/tags[]/annotations/opendatahub.io\/notebook-build-commit
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-minimal-notebook-image-commit-n
- path: spec/tags[]/annotations/opendatahub.io\/notebook-build-commit
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-pytorch-notebook-image-commit-n
- path: spec/tags[]/annotations/opendatahub.io\/notebook-build-commit
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-tensorflow-notebook-image-commit-n
29 changes: 29 additions & 0 deletions manifests/base/jupyter-rocm-minimal-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
opendatahub.io/notebook-image: "true"
annotations:
opendatahub.io/notebook-image-url: "https://github.com/red-hat-data-services/notebooks/blob/main/rocm"
opendatahub.io/notebook-image-name: "ROCm"
opendatahub.io/notebook-image-desc: "Jupyter ROCm notebook image for ODH notebooks."
opendatahub.io/notebook-image-order: "10"

Check failure on line 11 in manifests/base/jupyter-rocm-minimal-notebook-imagestream.yaml

View workflow job for this annotation

GitHub Actions / code-static-analysis

11:46 [trailing-spaces] trailing spaces
name: jupyter-rocm-minimal
spec:
lookupPolicy:
local: true
tags:
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"ROCm","version":"6.1"},{"name":"Python","version":"v3.9"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"JupyterLab","version":"3.6"},{"name": "Notebook","version": "6.5"}]'
openshift.io/imported-from: quay.io/modh/rocm-notebooks
opendatahub.io/workbench-image-recommended: 'true'
opendatahub.io/notebook-build-commit: $(jupyter-rocm-minimal-notebook-image-commit-n)
from:
kind: DockerImage
name: $(jupyter-rocm-minimal-notebook-image-n)
name: "2024.1"
referencePolicy:
type: Source
30 changes: 30 additions & 0 deletions manifests/base/jupyter-rocm-pytorch-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
opendatahub.io/notebook-image: "true"
annotations:
opendatahub.io/notebook-image-url: "https://github.com/red-hat-data-services/notebooks/blob/main/jupyter/rocm/pytorch"
opendatahub.io/notebook-image-name: "ROCm-PyTorch"
opendatahub.io/notebook-image-desc: "Jupyter ROCm optimized PyTorch notebook image for ODH notebooks."
opendatahub.io/notebook-image-order: "14"
opendatahub.io/recommended-accelerators: '["habana.ai/gaudi"]'
name: jupyter-rocm-pytorch
spec:
lookupPolicy:
local: true
tags:
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.9"},{"name":"ROCm-PyTorch","version":"2.3"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"ROCm-PyTorch","version":"2.3"},{"name":"Tensorboard","version":"2.16"},{"name":"Kafka-Python","version":"2.0"},{"name":"Matplotlib","version":"3.8"},{"name":"Numpy","version":"1.26"},{"name":"Pandas","version":"2.2"},{"name":"Scikit-learn","version":"1.4"},{"name":"Scipy","version":"1.12"},{"name":"Elyra","version":"3.16"},{"name":"PyMongo","version":"4.6"},{"name":"Pyodbc","version":"5.1"}, {"name":"Codeflare-SDK","version":"0.19"}, {"name":"Sklearn-onnx","version":"1.16"}, {"name":"Psycopg","version":"3.1"}, {"name":"MySQL Connector/Python","version":"8.3"}]'
openshift.io/imported-from: quay.io/modh/rocm-notebooks
opendatahub.io/workbench-image-recommended: 'true'
opendatahub.io/notebook-build-commit: $(odh-rocm-pytorch-notebook-image-commit-n)
from:
kind: DockerImage
name: $(odh-rocm-pytorch-notebook-image-commit-n)
name: "2024.1"
referencePolicy:
type: Source
30 changes: 30 additions & 0 deletions manifests/base/jupyter-rocm-tensorflow-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
opendatahub.io/notebook-image: "true"
annotations:
opendatahub.io/notebook-image-url: "https://github.com/red-hat-data-services/notebooks/blob/main/jupyter/rocm/tensorflow"
opendatahub.io/notebook-image-name: "ROCm-TensorFlow"
opendatahub.io/notebook-image-desc: "Jupyter ROCm optimized TensorFlow notebook image for ODH notebooks."
opendatahub.io/notebook-image-order: "15"
opendatahub.io/recommended-accelerators: '["habana.ai/gaudi"]'
name: jupyter-rocm-tensorflow
spec:
lookupPolicy:
local: true
tags:
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.9"},{"name":"ROCm-TensorFlow","version":"2.15"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"ROCm-TensorFlow","version":"2.15"},{"name":"Tensorboard","version":"2.15"},{"name":"Kafka-Python","version":"2.0"},{"name":"Matplotlib","version":"3.8"},{"name":"Numpy","version":"1.26"},{"name":"Pandas","version":"2.2"},{"name":"Scikit-learn","version":"1.4"},{"name":"Scipy","version":"1.12"},{"name":"Elyra","version":"3.16"},{"name":"PyMongo","version":"4.6"},{"name":"Pyodbc","version":"5.1"}, {"name":"Codeflare-SDK","version":"0.19"}, {"name":"Sklearn-onnx","version":"1.16"}, {"name":"Psycopg","version":"3.1"}, {"name":"MySQL Connector/Python","version":"8.3"}]'
openshift.io/imported-from: quay.io/modh/rocm-notebooks
opendatahub.io/workbench-image-recommended: 'true'
opendatahub.io/notebook-build-commit: $(odh-rocm-tensorflow-notebook-image-commit-n)
from:
kind: DockerImage
name: $(odh-rocm-tensorflow-notebook-image-commit-n)
name: "2024.1"
referencePolicy:
type: Source
24 changes: 24 additions & 0 deletions manifests/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ resources:
- code-server-notebook-imagestream.yaml
- rstudio-buildconfig.yaml
- cuda-rstudio-buildconfig.yaml
- jupyter-rocm-minimal-notebook-imagestream.yaml
- jupyter-rocm-pytorch-notebook-imagestream.yaml
- jupyter-rocm-tensorflow-notebook-imagestream.yaml

commonLabels:
opendatahub.io/component: "true"
Expand Down Expand Up @@ -403,6 +406,27 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.odh-codeserver-notebook-image-commit-n-1
- name: jupyter-rocm-minimal-notebook-image-commit-n

Check failure on line 409 in manifests/base/kustomization.yaml

View workflow job for this annotation

GitHub Actions / code-static-analysis

409:2 syntax error: expected <block end>, but found '<block sequence start>' (syntax)
objref:
kind: ConfigMap
name: notebook
apiVersion: v1
fieldref:
fieldpath: data.jupyter-rocm-minimal-notebook-image-commit-n
- name: odh-rocm-pytorch-notebook-image-commit-n
objref:
kind: ConfigMap
name: notebook
apiVersion: v1
fieldref:
fieldpath: data.odh-rocm-pytorch-notebook-image-commit-n
- name: odh-rocm-tensorflow-notebook-image-commit-n
objref:
kind: ConfigMap
name: notebook
apiVersion: v1
fieldref:
fieldpath: data.odh-rocm-tensorflow-notebook-image-commit-n
configurations:
- params.yaml
- commit.yaml
3 changes: 3 additions & 0 deletions manifests/base/params.env
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ odh-codeserver-notebook-image-n=quay.io/modh/codeserver@sha256:4dbd8a4fe853337cf
odh-codeserver-notebook-image-n-1=quay.io/modh/codeserver@sha256:b0619026944c42c99617e1816f04a6d2407c5fae7ddb405332d549cdce69d469
odh-habana-notebook-image-n=quay.io/modh/odh-habana-notebooks@sha256:8974095cf74fc4612eb62b2f72127154f741ec0c35cca8cce9383fff12de6dcc
odh-habana-notebook-image-n-1=quay.io/modh/odh-habana-notebooks@sha256:118d762d68701260d4b0d3a55b687c292d694da0db1e38ab2f9e8b848f61c9a7
odh-rocm-minimal-notebook-image-n=quay.io/modh/rocm-notebooks@sha256:
odh-rocm-pytorch-notebook-image-n=quay.io/modh/rocm-notebooks@sha256:
odh-rocm-tensorflow-notebook-image-n=quay.io/modh/rocm-notebooks@sha256:
12 changes: 12 additions & 0 deletions manifests/base/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,15 @@ varReference:
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-codeserver-notebook-image-n-1
- path: spec/tags[]/from/name
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-minimal-notebook-image-n
- path: spec/tags[]/from/name
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-pytorch-notebook-image-n
- path: spec/tags[]/from/name
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-rocm-tensorflow-notebook-image-n

0 comments on commit 2a0f1c7

Please sign in to comment.