From 45d0a6d4fb8d4392e206e97a6e30116962dbbd0a Mon Sep 17 00:00:00 2001 From: sveno1990 <59794845+sveno1990@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:09:03 +0100 Subject: [PATCH] add-base-image-parameter --- task/s2i-python/0.1/s2i-python.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/task/s2i-python/0.1/s2i-python.yaml b/task/s2i-python/0.1/s2i-python.yaml index 83d0fba..170caf0 100644 --- a/task/s2i-python/0.1/s2i-python.yaml +++ b/task/s2i-python/0.1/s2i-python.yaml @@ -35,6 +35,10 @@ spec: - name: BUILDER_IMAGE description: The location of the buildah builder image. default: quay.io/buildah/stable:v1.17.0 + - name: BASE_IMAGE + description: the location of the python base image. + default: image-registry.openshift-image-registry.svc:5000/openshift/python + type: string workspaces: - name: source mountPath: /workspace/source @@ -42,7 +46,7 @@ spec: - name: generate image: quay.io/openshift-pipeline/s2i workingdir: $(workspaces.source.path) - command: ['s2i', 'build', '$(params.PATH_CONTEXT)', 'image-registry.openshift-image-registry.svc:5000/openshift/python:$(params.VERSION)', '--as-dockerfile', '/gen-source/Dockerfile.gen'] + command: ['s2i', 'build', '$(params.PATH_CONTEXT)', '$(params.BASE_IMAGE):5000/openshift/python:$(params.VERSION)', '--as-dockerfile', '/gen-source/Dockerfile.gen'] volumeMounts: - name: gen-source mountPath: /gen-source