1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00
This commit is contained in:
Philip Germanov
2025-02-27 17:10:43 +02:00
parent 1ab29ac2f4
commit cd4c6897cd

View File

@@ -112,20 +112,26 @@ spec:
- name: buildkitd
image: moby/buildkit:v0.12.0-rootless
command:
- /bin/sh
- /usr/bin/rootlesskit
args:
- -c
- |
mkdir -p /run/buildkit && \
/usr/bin/rootlesskit \
--net=slirp4netns \
--copy-up=/etc \
--copy-up=/run \
--propagation=rslave \
/usr/bin/buildkitd \
--addr=unix:///run/buildkit/buildkitd.sock \
--oci-worker-no-process-sandbox \
--containerd-worker=false
- --net=slirp4netns
- --copy-up=/etc
- --copy-up=/run
- --propagation=rslave
- /usr/bin/buildkitd
- --addr=unix:///run/buildkit/buildkitd.sock
- --oci-worker-no-process-sandbox
- --containerd-worker=false
- --debug
lifecycle:
preStart:
exec:
command: ["/bin/sh", "-c", "mkdir -p /run/buildkit"]
readinessProbe:
exec:
command: ["buildctl", "debug", "workers"]
initialDelaySeconds: 5
periodSeconds: 10
env:
- name: HOME
value: /home/user
@@ -166,7 +172,7 @@ spec:
value: "1048576"
volumeMounts:
- name: volume
mountPath: /home/user/.local/share
mountPath: /run/buildkit
subPath: buildkit-data
- name: volume
mountPath: /workspace
@@ -174,14 +180,11 @@ spec:
- name: volume
mountPath: /home/user/.docker
subPath: docker-config
- name: tmp
- name: volume
mountPath: /tmp
subPath: tmp-data
volumes:
- name: volume
emptyDir:
medium: Memory
sizeLimit: 10Gi
- name: tmp
emptyDir:
medium: Memory
sizeLimit: 1Gi