Skip to content

Commit 7f35502

Browse files
committed
Update Python images used in iris-sklearn sample
1 parent 9e7697d commit 7f35502

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

samples/iris-sklearn/iris-pipeline-compiled.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,25 +157,25 @@ def load_pickle(object_file):
157157

158158
data_prep_op = kfp.components.create_component_from_func(
159159
data_prep,
160-
base_image="image-registry.openshift-image-registry.svc:5000/openshift/python:latest",
160+
base_image="registry.access.redhat.com/ubi8/python-38",
161161
packages_to_install=["pandas", "scikit-learn"],
162162
)
163163

164164
train_model_op = kfp.components.create_component_from_func(
165165
train_model,
166-
base_image="image-registry.openshift-image-registry.svc:5000/openshift/python:latest",
166+
base_image="registry.access.redhat.com/ubi8/python-38",
167167
packages_to_install=["pandas", "scikit-learn"],
168168
)
169169

170170
evaluate_model_op = kfp.components.create_component_from_func(
171171
evaluate_model,
172-
base_image="image-registry.openshift-image-registry.svc:5000/openshift/python:latest",
172+
base_image="registry.access.redhat.com/ubi8/python-38",
173173
packages_to_install=["pandas", "scikit-learn"],
174174
)
175175

176176
validate_model_op = kfp.components.create_component_from_func(
177177
validate_model,
178-
base_image="image-registry.openshift-image-registry.svc:5000/openshift/python:latest",
178+
base_image="registry.access.redhat.com/ubi8/python-38",
179179
packages_to_install=["pandas", "scikit-learn"],
180180
)
181181

samples/iris-sklearn/iris-pipeline-direct-run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,25 +157,25 @@ def load_pickle(object_file):
157157

158158
data_prep_op = kfp.components.create_component_from_func(
159159
data_prep,
160-
base_image="image-registry.openshift-image-registry.svc:5000/openshift/python:latest",
160+
base_image="registry.access.redhat.com/ubi8/python-38",
161161
packages_to_install=["pandas", "scikit-learn"],
162162
)
163163

164164
train_model_op = kfp.components.create_component_from_func(
165165
train_model,
166-
base_image="image-registry.openshift-image-registry.svc:5000/openshift/python:latest",
166+
base_image="registry.access.redhat.com/ubi8/python-38",
167167
packages_to_install=["pandas", "scikit-learn"],
168168
)
169169

170170
evaluate_model_op = kfp.components.create_component_from_func(
171171
evaluate_model,
172-
base_image="image-registry.openshift-image-registry.svc:5000/openshift/python:latest",
172+
base_image="registry.access.redhat.com/ubi8/python-38",
173173
packages_to_install=["pandas", "scikit-learn"],
174174
)
175175

176176
validate_model_op = kfp.components.create_component_from_func(
177177
validate_model,
178-
base_image="image-registry.openshift-image-registry.svc:5000/openshift/python:latest",
178+
base_image="registry.access.redhat.com/ubi8/python-38",
179179
packages_to_install=["pandas", "scikit-learn"],
180180
)
181181

0 commit comments

Comments
 (0)