mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 17:01:42 +02:00
Run docker_credentials_gcr in warmer (#1780)
* run docker_credentials_gcr in warmer * fix tests * fix dockerfiles * fix boilerplate * mend * fix * another lint
This commit is contained in:
@@ -71,7 +71,6 @@ COPY --from=0 /usr/local/bin/docker-credential-gcr /kaniko/docker-credential-gcr
|
||||
COPY --from=0 /go/src/github.com/awslabs/amazon-ecr-credential-helper/bin/local/docker-credential-ecr-login /kaniko/docker-credential-ecr-login
|
||||
COPY --from=0 /go/src/github.com/chrismellard/docker-credential-acr-env/build/docker-credential-acr-env /kaniko/docker-credential-acr
|
||||
COPY --from=busybox:1.32.0 /bin /busybox
|
||||
|
||||
# Declare /busybox as a volume to get it automatically in the path to ignore
|
||||
VOLUME /busybox
|
||||
|
||||
@@ -85,7 +84,6 @@ ENV SSL_CERT_DIR=/kaniko/ssl/certs
|
||||
ENV DOCKER_CONFIG /kaniko/.docker/
|
||||
ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko/.config/gcloud/docker_credential_gcr_config.json
|
||||
WORKDIR /workspace
|
||||
RUN ["/kaniko/docker-credential-gcr", "config", "--token-source=env"]
|
||||
RUN ["/busybox/mkdir", "-p", "/bin"]
|
||||
RUN ["/busybox/ln", "-s", "/busybox/sh", "/bin/sh"]
|
||||
ENTRYPOINT ["/kaniko/executor"]
|
||||
|
||||
Reference in New Issue
Block a user