Skip to content

Commit 99698b7

Browse files
authored
Merge pull request opendatahub-io#2271 from atheo89/RHAIENG-779
Refactor Dockerfiles to Use Config Files via ARG
2 parents 93c0810 + 798bfe2 commit 99698b7

File tree

85 files changed

+339
-1453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+339
-1453
lines changed

.tekton/odh-pipeline-runtime-datascience-cpu-py312-ubi9-pull-request.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ metadata:
1313
pipelinesascode.tekton.dev/max-keep-runs: '3'
1414
pipelinesascode.tekton.dev/on-comment: ^/kfbuild\s+(all|odh\-pipeline\-runtime\-datascience\-cpu\-py312\-ubi9|runtimes/datascience/ubi9\-python\-3\.12)
1515
pipelinesascode.tekton.dev/on-cel-expression: |
16-
event == "pull_request" && target_branch
17-
== "main"
18-
&& !("manifests/base/params-latest.env".pathChanged())
19-
&& ( "runtimes/datascience/ubi9-python-3.12/**".pathChanged() ||
20-
".tekton/odh-pipeline-runtime-datascience-cpu-py312-ubi9-pull-request.yaml".pathChanged() )
16+
event == "pull_request" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( "runtimes/datascience/ubi9-python-3.12/**".pathChanged() || "runtimes/datascience/ubi9-python-3.12/build-args/cpu.conf".pathChanged() || ".tekton/odh-pipeline-runtime-datascience-cpu-py312-ubi9-pull-request.yaml".pathChanged() )
2117
&& body.repository.full_name == "opendatahub-io/notebooks"
2218
labels:
2319
appstudio.openshift.io/application: opendatahub-release
@@ -44,6 +40,8 @@ spec:
4440
value: runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu
4541
- name: path-context
4642
value: .
43+
- name: build-args-file
44+
value: runtimes/datascience/ubi9-python-3.12/build-args/cpu.conf
4745
pipelineRef:
4846
name: multiarch-pull-request-pipeline
4947
taskRunTemplate:

.tekton/odh-pipeline-runtime-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()) && ( "runtimes/datascience/ubi9-python-3.12/**".pathChanged() || ".tekton/odh-pipeline-runtime-datascience-cpu-py312-ubi9-push.yaml".pathChanged() )
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( "runtimes/datascience/ubi9-python-3.12/**".pathChanged() || "runtimes/datascience/ubi9-python-3.12/build-args/cpu.conf".pathChanged() || ".tekton/odh-pipeline-runtime-datascience-cpu-py312-ubi9-push.yaml".pathChanged() )
1212
creationTimestamp:
1313
labels:
1414
appstudio.openshift.io/application: opendatahub-release
@@ -26,6 +26,8 @@ spec:
2626
value: quay.io/opendatahub/odh-pipeline-runtime-datascience-cpu-py312-ubi9:{{revision}}
2727
- name: dockerfile
2828
value: runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu
29+
- name: build-args-file
30+
value: runtimes/datascience/ubi9-python-3.12/build-args/cpu.conf
2931
- name: path-context
3032
value: .
3133
- name: additional-tags

.tekton/odh-pipeline-runtime-minimal-cpu-py312-ubi9-pull-request.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ metadata:
1313
pipelinesascode.tekton.dev/max-keep-runs: '3'
1414
pipelinesascode.tekton.dev/on-comment: ^/kfbuild\s+(all|odh\-pipeline\-runtime\-minimal\-cpu\-py312\-ubi9|runtimes/minimal/ubi9\-python\-3\.12)
1515
pipelinesascode.tekton.dev/on-cel-expression: |
16-
event == "pull_request" && target_branch
17-
== "main"
18-
&& !("manifests/base/params-latest.env".pathChanged())
19-
&& ( "runtimes/minimal/ubi9-python-3.12/**".pathChanged() ||
20-
".tekton/odh-pipeline-runtime-minimal-cpu-py312-ubi9-pull-request.yaml".pathChanged() )
16+
event == "pull_request" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( "runtimes/minimal/ubi9-python-3.12/**".pathChanged() || "runtimes/minimal/build-args/cpu.conf".pathChanged() || ".tekton/odh-pipeline-runtime-minimal-cpu-py312-ubi9-pull-request.yaml".pathChanged() )
2117
&& body.repository.full_name == "opendatahub-io/notebooks"
2218
labels:
2319
appstudio.openshift.io/application: opendatahub-release
@@ -46,6 +42,8 @@ spec:
4642
value: runtimes/minimal/ubi9-python-3.12/Dockerfile.cpu
4743
- name: path-context
4844
value: .
45+
- name: build-args-file
46+
value: runtimes/minimal/ubi9-python-3.12/build-args/cpu.conf
4947
pipelineRef:
5048
name: multiarch-pull-request-pipeline
5149
taskRunTemplate:

.tekton/odh-pipeline-runtime-minimal-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()) && ( "runtimes/minimal/ubi9-python-3.12/**".pathChanged() || ".tekton/odh-pipeline-runtime-minimal-cpu-py312-ubi9-push.yaml".pathChanged() )
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( "runtimes/minimal/ubi9-python-3.12/**".pathChanged() || "runtimes/minimal/build-args/cpu.conf".pathChanged() || ".tekton/odh-pipeline-runtime-minimal-cpu-py312-ubi9-push.yaml".pathChanged() )
1212
creationTimestamp:
1313
labels:
1414
appstudio.openshift.io/application: opendatahub-release
@@ -26,6 +26,8 @@ spec:
2626
value: quay.io/opendatahub/odh-pipeline-runtime-minimal-cpu-py312-ubi9:{{revision}}
2727
- name: dockerfile
2828
value: runtimes/minimal/ubi9-python-3.12/Dockerfile.cpu
29+
- name: build-args-file
30+
value: runtimes/minimal/build-args/cpu.conf
2931
- name: path-context
3032
value: .
3133
- name: additional-tags

.tekton/odh-pipeline-runtime-pytorch-cuda-py312-ubi9-pull-request.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ metadata:
1313
pipelinesascode.tekton.dev/max-keep-runs: '3'
1414
pipelinesascode.tekton.dev/on-comment: ^/kfbuild\s+(all|odh\-pipeline\-runtime\-pytorch\-cuda\-py312\-ubi9|runtimes/pytorch/ubi9\-python\-3\.12)
1515
pipelinesascode.tekton.dev/on-cel-expression: |
16-
event == "pull_request" && target_branch
17-
== "main"
18-
&& !("manifests/base/params-latest.env".pathChanged())
19-
&& ( ".tekton/odh-pipeline-runtime-pytorch-cuda-py312-ubi9-pull-request.yaml".pathChanged() ||
20-
"runtimes/pytorch/ubi9-python-3.12/**".pathChanged() ||
21-
"cuda/**".pathChanged() )
16+
event == "pull_request" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-pipeline-runtime-pytorch-cuda-py312-ubi9-pull-request.yaml".pathChanged() || "runtimes/pytorch/ubi9-python-3.12/**".pathChanged() || "runtimes/pytorch/ubi9-python-3.12/build-args/cuda.conf".pathChanged() )
2217
&& body.repository.full_name == "opendatahub-io/notebooks"
2318
labels:
2419
appstudio.openshift.io/application: opendatahub-release
@@ -45,6 +40,8 @@ spec:
4540
value: runtimes/pytorch/ubi9-python-3.12/Dockerfile.cuda
4641
- name: path-context
4742
value: .
43+
- name: build-args-file
44+
value: runtimes/pytorch/ubi9-python-3.12/build-args/cuda.conf
4845
pipelineRef:
4946
name: multiarch-pull-request-pipeline
5047
taskRunTemplate:

.tekton/odh-pipeline-runtime-pytorch-cuda-py312-ubi9-push.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
apiVersion: tekton.dev/v1
22
kind: PipelineRun
3-
#test
43
metadata:
54
annotations:
65
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/notebooks?rev={{revision}}
@@ -9,7 +8,7 @@ metadata:
98
pipelinesascode.tekton.dev/cancel-in-progress: "false"
109
pipelinesascode.tekton.dev/max-keep-runs: "3"
1110
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
12-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-pipeline-runtime-pytorch-cuda-py312-ubi9-push.yaml".pathChanged() || "runtimes/pytorch/ubi9-python-3.12/**".pathChanged() || "cuda/**".pathChanged() )
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-pipeline-runtime-pytorch-cuda-py312-ubi9-push.yaml".pathChanged() || "runtimes/pytorch/ubi9-python-3.12/**".pathChanged() || "runtimes/pytorch/ubi9-python-3.12/build-args/cuda.conf".pathChanged() )
1312
creationTimestamp:
1413
labels:
1514
appstudio.openshift.io/application: opendatahub-release
@@ -29,6 +28,8 @@ spec:
2928
value: quay.io/opendatahub/odh-pipeline-runtime-pytorch-cuda-py312-ubi9:{{revision}}
3029
- name: dockerfile
3130
value: runtimes/pytorch/ubi9-python-3.12/Dockerfile.cuda
31+
- name: build-args-file
32+
value: runtimes/pytorch/ubi9-python-3.12/build-args/cuda.conf
3233
- name: path-context
3334
value: .
3435
- name: additional-tags

.tekton/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-ubi9-pull-request.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
pipelinesascode.tekton.dev/max-keep-runs: '3'
1414
pipelinesascode.tekton.dev/on-comment: ^/kfbuild\s+(all|odh\-pipeline\-runtime\-pytorch\-llmcompressor\-cuda\-py312\-ubi9|runtimes/pytorch\+llmcompressor/ubi9\-python\-3\.12)
1515
pipelinesascode.tekton.dev/on-cel-expression: |
16-
event == "pull_request" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-ubi9-pull-request.yaml".pathChanged() || "runtimes/pytorch+llmcompressor/ubi9-python-3.12/**".pathChanged() || "cuda/**".pathChanged() )
16+
event == "pull_request" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-ubi9-pull-request.yaml".pathChanged() || "runtimes/pytorch+llmcompressor/ubi9-python-3.12/**".pathChanged() || "runtimes/pytorch+llmcompressor/ubi9-python-3.12/build-args/cuda.conf".pathChanged() )
1717
&& body.repository.full_name == "opendatahub-io/notebooks"
1818
labels:
1919
appstudio.openshift.io/application: opendatahub-release
@@ -40,6 +40,8 @@ spec:
4040
value: runtimes/pytorch+llmcompressor/ubi9-python-3.12/Dockerfile.cuda
4141
- name: path-context
4242
value: .
43+
- name: build-args-file
44+
value: runtimes/pytorch+llmcompressor/ubi9-python-3.12/build-args/cuda.conf
4345
pipelineRef:
4446
name: multiarch-pull-request-pipeline
4547
taskRunTemplate:

.tekton/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-ubi9-push.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
apiVersion: tekton.dev/v1
22
kind: PipelineRun
3-
#test
43
metadata:
54
annotations:
65
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/notebooks?rev={{revision}}
@@ -9,7 +8,7 @@ metadata:
98
pipelinesascode.tekton.dev/cancel-in-progress: "false"
109
pipelinesascode.tekton.dev/max-keep-runs: "3"
1110
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
12-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-ubi9-push.yaml".pathChanged() || "runtimes/pytorch+llmcompressor/ubi9-python-3.12/**".pathChanged() || "cuda/**".pathChanged() )
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-ubi9-push.yaml".pathChanged() || "runtimes/pytorch+llmcompressor/ubi9-python-3.12/**".pathChanged() || "runtimes/pytorch+llmcompressor/ubi9-python-3.12/build-args/cuda.conf".pathChanged() )
1312
creationTimestamp:
1413
labels:
1514
appstudio.openshift.io/application: opendatahub-release
@@ -29,6 +28,8 @@ spec:
2928
value: quay.io/opendatahub/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-ubi9:{{revision}}
3029
- name: dockerfile
3130
value: runtimes/pytorch+llmcompressor/ubi9-python-3.12/Dockerfile.cuda
31+
- name: build-args-file
32+
value: runtimes/pytorch+llmcompressor/ubi9-python-3.12/build-args/cuda.conf
3233
- name: path-context
3334
value: .
3435
- name: additional-tags

.tekton/odh-pipeline-runtime-pytorch-rocm-py312-ubi9-pull-request.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ metadata:
1313
pipelinesascode.tekton.dev/max-keep-runs: '3'
1414
pipelinesascode.tekton.dev/on-comment: ^/kfbuild\s+(all|odh\-pipeline\-runtime\-pytorch\-rocm\-py312\-ubi9|runtimes/rocm\-pytorch/ubi9\-python\-3\.12)
1515
pipelinesascode.tekton.dev/on-cel-expression: |
16-
event == "pull_request" && target_branch
17-
== "main"
18-
&& !("manifests/base/params-latest.env".pathChanged())
19-
&& (".tekton/odh-pipeline-runtime-pytorch-rocm-py312-ubi9-pull-request.yaml".pathChanged() ||
20-
"runtimes/rocm-pytorch/ubi9-python-3.12/**".pathChanged() )
16+
event == "pull_request" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && (".tekton/odh-pipeline-runtime-pytorch-rocm-py312-ubi9-pull-request.yaml".pathChanged() || "runtimes/rocm-pytorch/ubi9-python-3.12/**".pathChanged() || "runtimes/rocm-pytorch/ubi9-python-3.12/build-args/rocm.conf".pathChanged() )
2117
&& body.repository.full_name == "opendatahub-io/notebooks"
2218
labels:
2319
appstudio.openshift.io/application: opendatahub-release
@@ -44,6 +40,8 @@ spec:
4440
value: runtimes/rocm-pytorch/ubi9-python-3.12/Dockerfile.rocm
4541
- name: path-context
4642
value: .
43+
- name: build-args-file
44+
value: runtimes/rocm-pytorch/ubi9-python-3.12/build-args/rocm.conf
4745
pipelineRef:
4846
name: multiarch-pull-request-pipeline
4947
taskRunTemplate:

.tekton/odh-pipeline-runtime-pytorch-rocm-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-pipeline-runtime-pytorch-rocm-py312-ubi9-push.yaml".pathChanged() || "runtimes/rocm-pytorch/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-pipeline-runtime-pytorch-rocm-py312-ubi9-push.yaml".pathChanged() || "runtimes/rocm-pytorch/ubi9-python-3.12/**".pathChanged() || "runtimes/rocm-pytorch/ubi9-python-3.12/build-args/rocm.conf".pathChanged() )
1212
creationTimestamp:
1313
labels:
1414
appstudio.openshift.io/application: opendatahub-release
@@ -28,6 +28,8 @@ spec:
2828
value: quay.io/opendatahub/odh-pipeline-runtime-pytorch-rocm-py312-ubi9:{{revision}}
2929
- name: dockerfile
3030
value: runtimes/rocm-pytorch/ubi9-python-3.12/Dockerfile.rocm
31+
- name: build-args-file
32+
value: runtimes/rocm-pytorch/ubi9-python-3.12/build-args/rocm.conf
3133
- name: path-context
3234
value: .
3335
- name: additional-tags

0 commit comments

Comments
 (0)