Skip to content

Commit 0440d9e

Browse files
authored
Merge pull request opendatahub-io#122 from moulalis/update_new_rocm
new rocm 251 added
2 parents 406af7d + 04c407e commit 0440d9e

File tree

2 files changed

+27
-646
lines changed

2 files changed

+27
-646
lines changed

.tekton/training-py311-cuda124-torch251-push.yaml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/distributed-workloads?rev={{revision}}
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
89
pipelinesascode.tekton.dev/max-keep-runs: "3"
910
pipelinesascode.tekton.dev/on-cel-expression: |
1011
event == "push"
@@ -18,6 +19,8 @@ metadata:
1819
name: training-py311-cuda124-torch251-on-push
1920
namespace: rhoai-tenant
2021
spec:
22+
timeouts:
23+
pipeline: 10h
2124
params:
2225
- name: git-url
2326
value: '{{source_url}}'
@@ -27,32 +30,19 @@ spec:
2730
value: quay.io/modh/training:py311-cuda124-torch251
2831
- name: additional-tag
2932
value: py311-cuda124-torch251-{{revision}}
33+
- name: build-platforms
34+
value:
35+
- linux-extra-fast/amd64
3036
- name: dockerfile
3137
value: Dockerfile
3238
- name: path-context
3339
value: images/runtime/training/py311-cuda124-torch251
34-
taskRunSpecs:
35-
- pipelineTaskName: build-container
36-
stepSpecs:
37-
- name: build
38-
computeResources:
39-
requests:
40-
memory: 10Gi
41-
limits:
42-
memory: 10Gi
43-
- pipelineTaskName: prefetch-dependencies
44-
computeResources:
45-
requests:
46-
cpu: '1'
47-
memory: 2Gi
48-
limits:
49-
memory: 2Gi
5040
pipelineSpec:
5141
description: |
52-
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
42+
This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization.
5343
54-
_Uses `buildah` to create a container image leveraging [trusted artifacts](https://konflux-ci.dev/architecture/ADR/0036-trusted-artifacts.html). It also optionally creates a source image and runs some build-time tests. Information is shared between tasks using OCI artifacts instead of PVCs. EC will pass the [`trusted_task.trusted`](https://enterprisecontract.dev/docs/ec-policies/release_policy.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks.
55-
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-oci-ta?tab=tags)_
44+
_Uses `buildah` to create a multi-platform container image leveraging [trusted artifacts](https://konflux-ci.dev/architecture/ADR/0036-trusted-artifacts.html). It also optionally creates a source image and runs some build-time tests. This pipeline requires that the [multi platform controller](https://github.com/konflux-ci/multi-platform-controller) is deployed and configured on your Konflux instance. Information is shared between tasks using OCI artifacts instead of PVCs. EC will pass the [`trusted_task.trusted`](https://enterprisecontract.dev/docs/ec-policies/release_policy.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks.
45+
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-multi-platform-oci-ta?tab=tags)_
5646
finally:
5747
- name: show-sbom
5848
params:
@@ -127,11 +117,12 @@ spec:
127117
description: Path to a file with build arguments for buildah, see https://www.mankier.com/1/buildah-build#--build-arg-file
128118
name: build-args-file
129119
type: string
130-
- default: "false"
131-
description: Whether to enable privileged mode, should be used only with remote
132-
VMs
133-
name: privileged-nested
134-
type: string
120+
- default:
121+
- linux/x86_64
122+
description: List of platforms to build the container images on. The available
123+
set of values is determined by the configuration of the multi-platform-controller.
124+
name: build-platforms
125+
type: array
135126
results:
136127
- description: ""
137128
name: IMAGE_URL
@@ -218,7 +209,13 @@ spec:
218209
workspace: git-auth
219210
- name: netrc
220211
workspace: netrc
221-
- name: build-container
212+
- name: build-images
213+
timeout: 5h
214+
matrix:
215+
params:
216+
- name: PLATFORM
217+
value:
218+
- $(params.build-platforms)
222219
params:
223220
- name: IMAGE
224221
value: $(params.output-image)
@@ -245,12 +242,14 @@ spec:
245242
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
246243
- name: CACHI2_ARTIFACT
247244
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
245+
- name: IMAGE_APPEND_PLATFORM
246+
value: "false"
248247
runAfter:
249248
- prefetch-dependencies
250249
taskRef:
251250
params:
252251
- name: name
253-
value: buildah-oci-ta
252+
value: buildah-remote-oci-ta
254253
- name: bundle
255254
value: quay.io/konflux-ci/tekton-catalog/task-buildah-oci-ta:0.4@sha256:2466d6f8787363825fea838598e91ece2c80e063796613a5c13b28ab690dfbb2
256255
- name: kind
@@ -363,6 +362,7 @@ spec:
363362
values:
364363
- "false"
365364
- name: ecosystem-cert-preflight-checks
365+
timeout: 2h
366366
params:
367367
- name: image-url
368368
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -409,6 +409,7 @@ spec:
409409
values:
410410
- "false"
411411
- name: clamav-scan
412+
timeout: 2h
412413
params:
413414
- name: image-digest
414415
value: $(tasks.build-image-index.results.IMAGE_DIGEST)

0 commit comments

Comments
 (0)