This commit is contained in:
Eugene Zuev 2025-06-09 00:54:43 +01:00 committed by GitHub
commit 3c12ddaa2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -315,7 +315,7 @@ echo -e 'FROM alpine \nRUN echo "created from standard input"' > Dockerfile | ta
"volumeMounts": [
{
"name": "cabundle",
"mountPath": "/kaniko/ssl/certs/"
"mountPath": "/etc/ssl/certs/"
},
{
"name": "docker-config",

View File

@ -66,12 +66,12 @@ FROM scratch AS kaniko-base-slim
# Create kaniko directory with world write permission to allow non root run
RUN --mount=from=busybox,dst=/usr/ ["busybox", "sh", "-c", "mkdir -p /kaniko && chmod 777 /kaniko"]
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /kaniko/ssl/certs/
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY files/nsswitch.conf /etc/nsswitch.conf
ENV HOME /root
ENV USER root
ENV PATH /usr/local/bin:/kaniko
ENV SSL_CERT_DIR=/kaniko/ssl/certs
ENV SSL_CERT_DIR=/etc/ssl/certs/
FROM kaniko-base-slim AS kaniko-base

View File

@ -5,7 +5,7 @@ fileExistenceTests:
path: '/'
shouldExist: true
- name: certs
path: '/kaniko/ssl/certs/ca-certificates.crt'
path: '/etc/ssl/certs/ca-certificates.crt'
shouldExist: true
- name: certs
path: '/etc/nsswitch.conf'