Skip to content

Commit 3ea6885

Browse files
committed
Updating ray image to use sha rather than floating tag
1 parent 1235fc8 commit 3ea6885

24 files changed

+33
-33
lines changed

demo-notebooks/additional-demos/hf_interactive.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"source": [
6969
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding Ray Cluster).\n",
7070
"\n",
71-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
71+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
7272
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
7373
]
7474
},

demo-notebooks/additional-demos/local_interactive.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"metadata": {},
3636
"source": [
3737
"\n",
38-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
38+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
3939
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
4040
]
4141
},

demo-notebooks/additional-demos/ray_job_client.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"metadata": {},
4242
"source": [
4343
"\n",
44-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
44+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
4545
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
4646
]
4747
},

demo-notebooks/guided-demos/0_basic_ray.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"source": [
4848
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding RayCluster).\n",
4949
"\n",
50-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
50+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
5151
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
5252
]
5353
},

demo-notebooks/guided-demos/1_cluster_job_client.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"source": [
4242
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding RayCluster).\n",
4343
"\n",
44-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
44+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
4545
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
4646
]
4747
},

demo-notebooks/guided-demos/2_basic_interactive.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"source": [
4545
"Once again, let's start by running through the same cluster setup as before:\n",
4646
"\n",
47-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
47+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
4848
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
4949
]
5050
},

demo-notebooks/guided-demos/notebook-ex-outputs/0_basic_ray.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"source": [
4848
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding RayCluster).\n",
4949
"\n",
50-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
50+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
5151
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
5252
]
5353
},

demo-notebooks/guided-demos/notebook-ex-outputs/1_cluster_job_client.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"source": [
4242
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding RayCluster).\n",
4343
"\n",
44-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
44+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
4545
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
4646
]
4747
},

demo-notebooks/guided-demos/notebook-ex-outputs/2_basic_interactive.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"source": [
4545
"Once again, let's start by running through the same cluster setup as before:\n",
4646
"\n",
47-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
47+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
4848
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
4949
]
5050
},

demo-notebooks/guided-demos/notebook-ex-outputs/interactivetest.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ spec:
8181
value: /home/ray/workspace/tls/server.key
8282
- name: RAY_TLS_CA_CERT
8383
value: /home/ray/workspace/tls/ca.crt
84-
image: quay.io/modh/ray:2.35.0-py39-cu121
84+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
8585
imagePullPolicy: Always
8686
lifecycle:
8787
preStop:
@@ -147,7 +147,7 @@ spec:
147147
value: /home/ray/workspace/tls/server.key
148148
- name: RAY_TLS_CA_CERT
149149
value: /home/ray/workspace/tls/ca.crt
150-
image: quay.io/modh/ray:2.35.0-py39-cu121
150+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
151151
lifecycle:
152152
preStop:
153153
exec:

demo-notebooks/guided-demos/notebook-ex-outputs/jobtest.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ spec:
7070
value: /home/ray/workspace/tls/server.key
7171
- name: RAY_TLS_CA_CERT
7272
value: /home/ray/workspace/tls/ca.crt
73-
image: quay.io/modh/ray:2.35.0-py39-cu121
73+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
7474
imagePullPolicy: Always
7575
lifecycle:
7676
preStop:
@@ -127,7 +127,7 @@ spec:
127127
value: /home/ray/workspace/tls/server.key
128128
- name: RAY_TLS_CA_CERT
129129
value: /home/ray/workspace/tls/ca.crt
130-
image: quay.io/modh/ray:2.35.0-py39-cu121
130+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
131131
lifecycle:
132132
preStop:
133133
exec:

demo-notebooks/guided-demos/notebook-ex-outputs/raytest.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ spec:
7070
value: /home/ray/workspace/tls/server.key
7171
- name: RAY_TLS_CA_CERT
7272
value: /home/ray/workspace/tls/ca.crt
73-
image: quay.io/modh/ray:2.35.0-py39-cu121
73+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
7474
imagePullPolicy: Always
7575
lifecycle:
7676
preStop:
@@ -127,7 +127,7 @@ spec:
127127
value: /home/ray/workspace/tls/server.key
128128
- name: RAY_TLS_CA_CERT
129129
value: /home/ray/workspace/tls/ca.crt
130-
image: quay.io/modh/ray:2.35.0-py39-cu121
130+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
131131
lifecycle:
132132
preStop:
133133
exec:

demo-notebooks/guided-demos/preview_nbs/0_basic_ray.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"source": [
4848
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding RayCluster).\n",
4949
"\n",
50-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
50+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
5151
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
5252
]
5353
},

demo-notebooks/guided-demos/preview_nbs/1_cluster_job_client.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"source": [
4242
"Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding RayCluster).\n",
4343
"\n",
44-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
44+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
4545
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
4646
]
4747
},

demo-notebooks/guided-demos/preview_nbs/2_basic_interactive.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"source": [
4545
"Once again, let's start by running through the same cluster setup as before:\n",
4646
"\n",
47-
"NOTE: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
47+
"NOTE: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. \n",
4848
"If you have your own Ray image which suits your purposes, specify it in image field to override the default image."
4949
]
5050
},

docs/cluster-configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cluster = Cluster(ClusterConfiguration(
2525
labels={"exampleLabel": "example", "secondLabel": "example"},
2626
))
2727
```
28-
Note: 'quay.io/modh/ray:2.35.0-py39-cu121' is the default image used by the CodeFlare SDK for creating a RayCluster resource. If you have your own Ray image which suits your purposes, specify it in image field to override the default image. If you are using ROCm compatible GPUs you can use 'quay.io/modh/ray:2.35.0-py39-rocm61'. You can also find documentation on building a custom image [here](https://github.com/opendatahub-io/distributed-workloads/tree/main/images/runtime/examples).
28+
Note: 'quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283' is the default image used by the CodeFlare SDK for creating a RayCluster resource. If you have your own Ray image which suits your purposes, specify it in image field to override the default image. If you are using ROCm compatible GPUs you can use 'quay.io/modh/ray:2.35.0-py39-rocm61'. You can also find documentation on building a custom image [here](https://github.com/opendatahub-io/distributed-workloads/tree/main/images/runtime/examples).
2929

3030
The `labels={"exampleLabel": "example"}` parameter can be used to apply additional labels to the RayCluster resource.
3131

src/codeflare_sdk/templates/base-template.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
containers:
7070
# The Ray head pod
7171
- name: ray-head
72-
image: quay.io/modh/ray:2.35.0-py39-cu121
72+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
7373
imagePullPolicy: Always
7474
ports:
7575
- containerPort: 6379
@@ -150,7 +150,7 @@ spec:
150150
spec:
151151
containers:
152152
- name: machine-learning # must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc'
153-
image: quay.io/modh/ray:2.35.0-py39-cu121
153+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
154154
# environment variables to set in the container.Optional.
155155
# Refer to https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
156156
lifecycle:

tests/e2e/support.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def get_ray_image():
11-
default_ray_image = "quay.io/modh/ray:2.35.0-py39-cu121"
11+
default_ray_image = "quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283"
1212
return os.getenv("RAY_IMAGE", default_ray_image)
1313

1414

tests/test-case-bad.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
valueFrom:
4444
fieldRef:
4545
fieldPath: status.podIP
46-
image: quay.io/modh/ray:2.35.0-py39-cu121
46+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
4747
imagePullPolicy: Always
4848
lifecycle:
4949
preStop:
@@ -90,7 +90,7 @@ spec:
9090
valueFrom:
9191
fieldRef:
9292
fieldPath: status.podIP
93-
image: quay.io/modh/ray:2.35.0-py39-cu121
93+
image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
9494
lifecycle:
9595
preStop:
9696
exec:

tests/test-case-no-kueue-no-aw.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
template:
3232
spec:
3333
containers:
34-
- image: quay.io/modh/ray:2.35.0-py39-cu121
34+
- image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
3535
imagePullPolicy: Always
3636
lifecycle:
3737
preStop:
@@ -103,7 +103,7 @@ spec:
103103
key: value
104104
spec:
105105
containers:
106-
- image: quay.io/modh/ray:2.35.0-py39-cu121
106+
- image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
107107
lifecycle:
108108
preStop:
109109
exec:

tests/test-case-no-mcad.yamls

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
template:
3535
spec:
3636
containers:
37-
- image: quay.io/modh/ray:2.35.0-py39-cu121
37+
- image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
3838
imagePullPolicy: Always
3939
lifecycle:
4040
preStop:
@@ -106,7 +106,7 @@ spec:
106106
key: value
107107
spec:
108108
containers:
109-
- image: quay.io/modh/ray:2.35.0-py39-cu121
109+
- image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
110110
lifecycle:
111111
preStop:
112112
exec:

tests/test-case.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
template:
4040
spec:
4141
containers:
42-
- image: quay.io/modh/ray:2.35.0-py39-cu121
42+
- image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
4343
imagePullPolicy: Always
4444
lifecycle:
4545
preStop:
@@ -111,7 +111,7 @@ spec:
111111
key: value
112112
spec:
113113
containers:
114-
- image: quay.io/modh/ray:2.35.0-py39-cu121
114+
- image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
115115
lifecycle:
116116
preStop:
117117
exec:

tests/test-default-appwrapper.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
spec:
4141
imagePullSecrets: []
4242
containers:
43-
- image: quay.io/modh/ray:2.35.0-py39-cu121
43+
- image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
4444
imagePullPolicy: Always
4545
lifecycle:
4646
preStop:
@@ -111,7 +111,7 @@ spec:
111111
spec:
112112
imagePullSecrets: []
113113
containers:
114-
- image: quay.io/modh/ray:2.35.0-py39-cu121
114+
- image: quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283
115115
lifecycle:
116116
preStop:
117117
exec:

tests/unit_test_support.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def createClusterWrongType():
4545
appwrapper=True,
4646
machine_types=[True, False],
4747
image_pull_secrets=["unit-test-pull-secret"],
48-
image="quay.io/modh/ray:2.35.0-py39-cu121",
48+
image="quay.io/modh/ray@sha256:83084b89885232e5733027b2ee45b83d3642ce32ae0b8e18b79ed45b6e734283",
4949
write_to_file=True,
5050
labels={1: 1},
5151
)

0 commit comments

Comments
 (0)