From a8bfe19ddcf19468af583e4a097a3b0822eca6cb Mon Sep 17 00:00:00 2001 From: Joshua Mathianas Date: Mon, 30 Jun 2025 21:59:36 -0400 Subject: [PATCH] Add ability to set tmpdir for buildah for large image building --- templates/task-buildah.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/task-buildah.yaml b/templates/task-buildah.yaml index b20b9e5..afdb7d8 100644 --- a/templates/task-buildah.yaml +++ b/templates/task-buildah.yaml @@ -50,6 +50,12 @@ spec: - "" description: | Dockerfile build arguments, array of key=value + - name: TMPDIR + type: string + default: + - "/var/tmp" + description: | + Path to the buildah temp directory (useful for building very large images to PVC path) {{- include "params_buildah_common" . | nindent 4 }} {{- include "params_common" . | nindent 4 }} @@ -59,6 +65,8 @@ spec: stepTemplate: env: + - name: TMPDIR + value: $(params.TMPDIR) {{- $variables := list "params.IMAGE" "params.CONTEXT"