From 6f3ed347289901566217982932ce14243f864978 Mon Sep 17 00:00:00 2001 From: atheo89 Date: Wed, 5 Feb 2025 10:56:07 +0100 Subject: [PATCH] Create ImageStream objects for the runtime images --- manifests/base/kustomization.yaml | 6 +++ .../base/runtime-datascience-imagestream.yaml | 40 +++++++++++++++++++ .../base/runtime-minimal-imagestream.yaml | 40 +++++++++++++++++++ .../base/runtime-pytorch-imagestream.yaml | 40 +++++++++++++++++++ .../runtime-rocm-pytorch-imagestream.yaml | 40 +++++++++++++++++++ .../runtime-rocm-tensorflow-imagestream.yaml | 40 +++++++++++++++++++ .../base/runtime-tensorflow-imagestream.yaml | 40 +++++++++++++++++++ 7 files changed, 246 insertions(+) create mode 100644 manifests/base/runtime-datascience-imagestream.yaml create mode 100644 manifests/base/runtime-minimal-imagestream.yaml create mode 100644 manifests/base/runtime-pytorch-imagestream.yaml create mode 100644 manifests/base/runtime-rocm-pytorch-imagestream.yaml create mode 100644 manifests/base/runtime-rocm-tensorflow-imagestream.yaml create mode 100644 manifests/base/runtime-tensorflow-imagestream.yaml diff --git a/manifests/base/kustomization.yaml b/manifests/base/kustomization.yaml index bd43ac4a9..c6058abba 100644 --- a/manifests/base/kustomization.yaml +++ b/manifests/base/kustomization.yaml @@ -14,6 +14,12 @@ resources: - jupyter-rocm-minimal-notebook-imagestream.yaml - jupyter-rocm-pytorch-notebook-imagestream.yaml - jupyter-rocm-tensorflow-notebook-imagestream.yaml + - runtime-datascience-imagestream.yaml + - runtime-minimal-imagestream.yaml + - runtime-pytorch-imagestream.yaml + - runtime-rocm-pytorch-imagestream.yaml + - runtime-rocm-tensorflow-imagestream.yaml + - runtime-tensorflow-imagestream.yaml commonLabels: opendatahub.io/component: "true" diff --git a/manifests/base/runtime-datascience-imagestream.yaml b/manifests/base/runtime-datascience-imagestream.yaml new file mode 100644 index 000000000..162d1e7e7 --- /dev/null +++ b/manifests/base/runtime-datascience-imagestream.yaml @@ -0,0 +1,40 @@ +--- +apiVersion: image.openshift.io/v1 +kind: ImageStream +metadata: + labels: + opendatahub.io/runtime-image: "true" + annotations: + # TODO: once the restraction takes a final shape need to update that url + opendatahub.io/runtime-image-url: "https://github.com//opendatahub-io/notebooks/tree/main/runtimes" + opendatahub.io/runtime-image-name: "Datascience with Python 3.11 (UBI9)" + opendatahub.io/runtime-image-desc: "Datascience runtime image for Elyra, enabling pipeline execution from Workbenches with a set of advanced AI/ML data science libraries, supporting different runtimes for various pipeline nodes." + name: runtime-datascience +spec: + lookupPolicy: + local: true + tags: + - annotations: + # language=json + opendatahub.io/runtime-image-metadata: | + [ + { + "display_name": "Datascience with Python 3.11 (UBI9)", + "metadata": { + "tags": [ + "datascience" + ], + "display_name": "Datascience with Python 3.11 (UBI9)", + "image_name": "quay.io/opendatahub/workbench-images@sha256:304d3b2ea846832f27312ef6776064a1bf3797c645b6fea0b292a7ef6416458e", + "pull_policy": "IfNotPresent" + }, + "schema_name": "runtime-image" + } + ] + openshift.io/imported-from: quay.io/opendatahub/workbench-images + from: + kind: DockerImage + name: quay.io/opendatahub/workbench-images@sha256:304d3b2ea846832f27312ef6776064a1bf3797c645b6fea0b292a7ef6416458e + name: "datascience" + referencePolicy: + type: Source diff --git a/manifests/base/runtime-minimal-imagestream.yaml b/manifests/base/runtime-minimal-imagestream.yaml new file mode 100644 index 000000000..2a64453ec --- /dev/null +++ b/manifests/base/runtime-minimal-imagestream.yaml @@ -0,0 +1,40 @@ +--- +apiVersion: image.openshift.io/v1 +kind: ImageStream +metadata: + labels: + opendatahub.io/runtime-image: "true" + annotations: + # TODO: once the restraction takes a final shape need to update that url + opendatahub.io/runtime-image-url: "https://github.com//opendatahub-io/notebooks/tree/main/runtimes" + opendatahub.io/runtime-image-name: "Python 3.11 (UBI9)" + opendatahub.io/runtime-image-desc: "Minimal runtime image for Elyra, enabling pipeline execution from Workbenches with minimal dependency set to start experimenting with, for various pipeline nodes." + name: runtime-minimal +spec: + lookupPolicy: + local: true + tags: + - annotations: + # language=json + opendatahub.io/runtime-image-metadata: | + [ + { + "display_name": "Python 3.11 (UBI9)", + "metadata": { + "tags": [ + "minimal" + ], + "display_name": "Python 3.11 (UBI9)", + "image_name": "quay.io/opendatahub/workbench-images@sha256:a2b1bf59f25fd0694394ad927e5eba93e32df9c2c11d8b54412564a9fc736ab8", + "pull_policy": "IfNotPresent" + }, + "schema_name": "runtime-image" + } + ] + openshift.io/imported-from: quay.io/opendatahub/workbench-images + from: + kind: DockerImage + name: quay.io/opendatahub/workbench-images@sha256:a2b1bf59f25fd0694394ad927e5eba93e32df9c2c11d8b54412564a9fc736ab8 + name: "minimal" + referencePolicy: + type: Source diff --git a/manifests/base/runtime-pytorch-imagestream.yaml b/manifests/base/runtime-pytorch-imagestream.yaml new file mode 100644 index 000000000..7fe6ef827 --- /dev/null +++ b/manifests/base/runtime-pytorch-imagestream.yaml @@ -0,0 +1,40 @@ +--- +apiVersion: image.openshift.io/v1 +kind: ImageStream +metadata: + labels: + opendatahub.io/runtime-image: "true" + annotations: + # TODO: once the restraction takes a final shape need to update that url + opendatahub.io/runtime-image-url: "https://github.com//opendatahub-io/notebooks/tree/main/runtimes" + opendatahub.io/runtime-image-name: "Pytorch with CUDA and Python 3.11 (UBI9)" + opendatahub.io/runtime-image-desc: "PyTorch runtime image for Elyra, enabling pipeline execution from Workbenches with PyTorch libraries and dependencies, supporting different runtimes for various pipeline nodes." + name: runtime-pytorch +spec: + lookupPolicy: + local: true + tags: + - annotations: + # language=json + opendatahub.io/runtime-image-metadata: | + [ + { + "display_name": "Pytorch with CUDA and Python 3.11 (UBI9)", + "metadata": { + "tags": [ + "pytorch" + ], + "display_name": "Pytorch with CUDA and Python 3.11 (UBI9)", + "image_name": "quay.io/opendatahub/workbench-images@sha256:6a2806bf3cd9b00f60f3c7fe907727fb954c9776a075d9d58df26b5119d7afe6", + "pull_policy": "IfNotPresent" + }, + "schema_name": "runtime-image" + } + ] + openshift.io/imported-from: quay.io/opendatahub/workbench-images + from: + kind: DockerImage + name: quay.io/opendatahub/workbench-images@sha256:6a2806bf3cd9b00f60f3c7fe907727fb954c9776a075d9d58df26b5119d7afe6 + name: "pytorch" + referencePolicy: + type: Source diff --git a/manifests/base/runtime-rocm-pytorch-imagestream.yaml b/manifests/base/runtime-rocm-pytorch-imagestream.yaml new file mode 100644 index 000000000..e0fd2c377 --- /dev/null +++ b/manifests/base/runtime-rocm-pytorch-imagestream.yaml @@ -0,0 +1,40 @@ +--- +apiVersion: image.openshift.io/v1 +kind: ImageStream +metadata: + labels: + opendatahub.io/runtime-image: "true" + annotations: + # TODO: once the restraction takes a final shape need to update that url + opendatahub.io/runtime-image-url: "https://github.com//opendatahub-io/notebooks/tree/main/runtimes" + opendatahub.io/runtime-image-name: "Pytorch with ROCm and Python 3.11 (UBI9)" + opendatahub.io/runtime-image-desc: "ROCm optimized PyTorch runtime image for Elyra, enabling pipeline execution from Workbenches with PyTorch libraries and dependencies, supporting different runtimes for various pipeline nodes." + name: runtime-rocm-pytorch +spec: + lookupPolicy: + local: true + tags: + - annotations: + # language=json + opendatahub.io/runtime-image-metadata: | + [ + { + "display_name": "Pytorch with ROCm and Python 3.11 (UBI9)", + "metadata": { + "tags": [ + "rocm-pytorch" + ], + "display_name": "Pytorch with ROCm and Python 3.11 (UBI9)", + "image_name": "quay.io/opendatahub/workbench-images@sha256:c6d74d73b835d0f97040ca99bb25065a949b817b52179f239a5361c3299352ba", + "pull_policy": "IfNotPresent" + }, + "schema_name": "runtime-image" + } + ] + openshift.io/imported-from: quay.io/opendatahub/workbench-images + from: + kind: DockerImage + name: quay.io/opendatahub/workbench-images@sha256:c6d74d73b835d0f97040ca99bb25065a949b817b52179f239a5361c3299352ba + name: "rocm-pytorch" + referencePolicy: + type: Source diff --git a/manifests/base/runtime-rocm-tensorflow-imagestream.yaml b/manifests/base/runtime-rocm-tensorflow-imagestream.yaml new file mode 100644 index 000000000..36ce1e54d --- /dev/null +++ b/manifests/base/runtime-rocm-tensorflow-imagestream.yaml @@ -0,0 +1,40 @@ +--- +apiVersion: image.openshift.io/v1 +kind: ImageStream +metadata: + labels: + opendatahub.io/runtime-image: "true" + annotations: + # TODO: once the restraction takes a final shape need to update that url + opendatahub.io/runtime-image-url: "https://github.com//opendatahub-io/notebooks/tree/main/runtimes" + opendatahub.io/runtime-image-name: "TensorFlow with ROCm and Python 3.11 (UBI9)" + opendatahub.io/runtime-image-desc: "ROCm optimized TensorFlow runtime image for Elyra, enabling pipeline execution from Workbenches with TensorFlow libraries and dependencies, supporting different runtimes for various pipeline nodes." + name: runtime-rocm-tensorflow +spec: + lookupPolicy: + local: true + tags: + - annotations: + # language=json + opendatahub.io/runtime-image-metadata: | + [ + { + "display_name": "TensorFlow with ROCm and Python 3.11 (UBI9)", + "metadata": { + "tags": [ + "rocm-tensorflow" + ], + "display_name": "TensorFlow with ROCm and Python 3.11 (UBI9)", + "image_name": "quay.io/opendatahub/workbench-images@sha256:6a2da12a8bdc9cfcda27f4189827be5fbde4b4b4c4f7d92ac694d9360e3562dc", + "pull_policy": "IfNotPresent" + }, + "schema_name": "runtime-image" + } + ] + openshift.io/imported-from: quay.io/opendatahub/workbench-images + from: + kind: DockerImage + name: quay.io/opendatahub/workbench-images@sha256:6a2da12a8bdc9cfcda27f4189827be5fbde4b4b4c4f7d92ac694d9360e3562dc + name: "rocm-tensorflow" + referencePolicy: + type: Source diff --git a/manifests/base/runtime-tensorflow-imagestream.yaml b/manifests/base/runtime-tensorflow-imagestream.yaml new file mode 100644 index 000000000..ed5aff425 --- /dev/null +++ b/manifests/base/runtime-tensorflow-imagestream.yaml @@ -0,0 +1,40 @@ +--- +apiVersion: image.openshift.io/v1 +kind: ImageStream +metadata: + labels: + opendatahub.io/runtime-image: "true" + annotations: + # TODO: once the restraction takes a final shape need to update that url + opendatahub.io/runtime-image-url: "https://github.com//opendatahub-io/notebooks/tree/main/runtimes" + opendatahub.io/runtime-image-name: "TensorFlow with CUDA and Python 3.11 (UBI9)" + opendatahub.io/runtime-image-desc: "TensorFlow runtime image for Elyra, enabling pipeline execution from Workbenches with TensorFlow libraries and dependencies, supporting different runtimes for various pipeline nodes." + name: runtime-tensorflow +spec: + lookupPolicy: + local: true + tags: + - annotations: + # language=json + opendatahub.io/runtime-image-metadata: | + [ + { + "display_name": "TensorFlow with CUDA and Python 3.11 (UBI9)", + "metadata": { + "tags": [ + "tensorflow" + ], + "display_name": "TensorFlow with CUDA and Python 3.11 (UBI9)", + "image_name": "quay.io/opendatahub/workbench-images@sha256:5d695b2e5dc76fc07a138644e2cd507c73eb9b26a47596734169c0b313e733f9", + "pull_policy": "IfNotPresent" + }, + "schema_name": "runtime-image" + } + ] + openshift.io/imported-from: quay.io/opendatahub/workbench-images + from: + kind: DockerImage + name: quay.io/opendatahub/workbench-images@sha256:5d695b2e5dc76fc07a138644e2cd507c73eb9b26a47596734169c0b313e733f9 + name: "tensorflow" + referencePolicy: + type: Source