From f7e9510582efeadd364f847c8fff1c45be5de0bd Mon Sep 17 00:00:00 2001 From: Piyush Garg Date: Fri, 6 Mar 2020 23:58:26 +0530 Subject: [PATCH] Run jib-gradle as root This will fix the issue of task not working on OpenShift as it needs root access and by default on OpenShift pod run as nonroot Fix #198 (cherry picked from commit 46bdfaf5aab5dcd7954c76c0b71a2bcc1b9f9bc4) --- jib-gradle/jib-gradle.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jib-gradle/jib-gradle.yaml b/jib-gradle/jib-gradle.yaml index 66016245..b5f1df6f 100644 --- a/jib-gradle/jib-gradle.yaml +++ b/jib-gradle/jib-gradle.yaml @@ -59,6 +59,8 @@ spec: - name: $(params.CACHE) mountPath: /tekton/home/.cache subPath: jib-cache + securityContext: + runAsUser: 0 volumes: - name: empty-dir-volume