Skip to content

Commit

Permalink
Run jib-gradle as root
Browse files Browse the repository at this point in the history
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 46bdfaf)
  • Loading branch information
piyush-garg authored and tekton-robot committed Apr 10, 2020
1 parent 2c3c81f commit f7e9510
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jib-gradle/jib-gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ spec:
- name: $(params.CACHE)
mountPath: /tekton/home/.cache
subPath: jib-cache
securityContext:
runAsUser: 0

volumes:
- name: empty-dir-volume
Expand Down

0 comments on commit f7e9510

Please sign in to comment.