Skip to content

Commit 2270a47

Browse files
committed
Update codeserver as well as its pipeline
1 parent e06b68c commit 2270a47

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
1010
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
11-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml".pathChanged() || "codeserver/ubi9-python-3.12/**".pathChanged() )
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml".pathChanged() || "codeserver/ubi9-python-3.12/**".pathChanged() || "codeserver/ubi9-python-3.12/build-args/cpu.conf".pathChanged() )
1212
creationTimestamp:
1313
labels:
1414
appstudio.openshift.io/application: opendatahub-release
@@ -26,6 +26,8 @@ spec:
2626
value: quay.io/opendatahub/odh-workbench-codeserver-datascience-cpu-py312-ubi9:{{revision}}
2727
- name: dockerfile
2828
value: codeserver/ubi9-python-3.12/Dockerfile.cpu
29+
- name: build-args-file
30+
value: codeserver/ubi9-python-3.12/build-args/cpu.conf
2931
- name: path-context
3032
value: .
3133
- name: additional-tags

codeserver/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
####################
2-
# base #
2+
# cpu-base #
33
####################
4-
FROM registry.access.redhat.com/ubi9/python-312:latest AS base
4+
ARG BASE_IMAGE
5+
FROM ${BASE_IMAGE} AS cpu-base
56

67
WORKDIR /opt/app-root/bin
78

@@ -30,11 +31,10 @@ RUN curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/oc
3031
rm -f /tmp/openshift-client-linux.tar.gz
3132
# Install the oc client end
3233

33-
3434
####################
3535
# codeserver #
3636
####################
37-
FROM base AS codeserver
37+
FROM cpu-base AS codeserver
3838

3939
ARG TARGETOS TARGETARCH
4040

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BASE_IMAGE=registry.access.redhat.com/ubi9/python-312:latest

0 commit comments

Comments
 (0)