Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit f0b4286

Browse files
Merge pull request #180 from Michkov/customize-sop
STONEBLD-1494: Add procedure to update buildah task
2 parents 31c413f + 9518b80 commit f0b4286

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

docs/modules/ROOT/pages/how-to-guides/configuring-builds/proc_customize_build_pipeline.adoc

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ name: example-task
4848
runAfter:
4949
- build-container #You can be more specific by choosing another task
5050
taskRef:
51-
bundle: <path to container image>
52-
name: example-task
51+
params:
52+
- name: name
53+
value: example-task
54+
- name: bundle
55+
value: <path to container image>
56+
- name: kind
57+
value: task
58+
resolver: bundles
5359
when:
5460
- input: $(params.skip-checks) #This references the pipeline parameters
5561
operator: in
@@ -62,6 +68,22 @@ NOTE: If you want to define a task directly in this file, rather than using `tas
6268
+
6369
. Commit your changes to the repository of the component.
6470

71+
== Exchanging the build pipeline build task with higher memory limits
72+
73+
The `buildah` task, which builds components from a Dockerfile, has a memory limit of 4 GB. To build components with memory requirements greater than 4 GB, use the following tasks:
74+
75+
* link:https://quay.io/repository/redhat-appstudio-tekton-catalog/task-buildah-6gb?tab=tags[quay.io/redhat-appstudio-tekton-catalog/task-buildah-6gb]
76+
* link:https://quay.io/repository/redhat-appstudio-tekton-catalog/task-buildah-8gb?tab=tags[quay.io/redhat-appstudio-tekton-catalog/task-buildah-8gb]
77+
* link:https://quay.io/repository/redhat-appstudio-tekton-catalog/task-buildah-10gb?tab=tags[quay.io/redhat-appstudio-tekton-catalog/task-buildah-10gb]
78+
79+
.Procedure
80+
81+
To exchange the build task with a memory limit of 6 GB, complete the following steps. For a memory limit of 8 or 10 GB, replace the references to 6 GB with the appropriate values.
82+
83+
. Go to the GitHub repo of your component.
84+
. In each .yaml file in the .tekton directory, under tasks, locate the task named build-container:
85+
.. Under `.taskRef.params`, set `name` to `buildah-6gb`.
86+
.. Under `.taskRef.params`, set `bundle` to `quay.io/redhat-appstudio-tekton-catalog/task-buildah-6gb:0.1`.
6587

6688
== Verification
6789

0 commit comments

Comments
 (0)