Build as root.

This commit is contained in:
Tom Alexander
2026-05-02 22:49:17 -04:00
parent af22c87d0d
commit cb37c55ff2

View File

@@ -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