Build as root.
This commit is contained in:
@@ -90,10 +90,10 @@ spec:
|
||||
mountPath: /home/user/.local/share/buildkit
|
||||
- name: buildkitd-toml
|
||||
mountPath: /home/user/.config/buildkit
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
# securityContext:
|
||||
# runAsNonRoot: true
|
||||
# runAsUser: 1000
|
||||
# runAsGroup: 1000
|
||||
- name: build-and-push
|
||||
image: $(params.BUILDER_IMAGE)
|
||||
workingDir: "$(workspaces.source.path)"
|
||||
@@ -121,9 +121,9 @@ spec:
|
||||
securityContext:
|
||||
seccompProfile:
|
||||
type: Unconfined
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
# runAsNonRoot: true
|
||||
# runAsUser: 1000
|
||||
# runAsGroup: 1000
|
||||
# appArmorProfile:
|
||||
# type: Unconfined
|
||||
env:
|
||||
@@ -149,7 +149,7 @@ spec:
|
||||
- name: metadata-out
|
||||
mountPath: /home/user/.metadata
|
||||
readOnly: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
# securityContext:
|
||||
# runAsNonRoot: true
|
||||
# runAsUser: 1000
|
||||
# runAsGroup: 1000
|
||||
|
||||
Reference in New Issue
Block a user