mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 02:52:56 +01:00
The final countdown, nana nananana
This commit is contained in:
parent
699f4fed0f
commit
d83eda003b
2 changed files with 13 additions and 8 deletions
|
|
@ -12,19 +12,24 @@ ENV HOME /root
|
|||
ENV USER root
|
||||
|
||||
# See https://github.com/GoogleContainerTools/kaniko/blob/master/deploy/Dockerfile#L65-L70
|
||||
COPY --from=kaniko-src /kaniko-dist/ /kaniko-dist
|
||||
COPY --from=kaniko-src /kaniko-dist/ /kaniko-dist/
|
||||
COPY --from=kaniko-src /etc/nsswitch.conf /etc/nsswitch.conf
|
||||
|
||||
RUN apk add --no-cache jq && \
|
||||
cp -r /kaniko-dist /kaniko
|
||||
ENV PATH /kaniko-dist:$PATH
|
||||
ENV SSL_CERT_DIR=/kaniko-dist/ssl/certs
|
||||
ENV DOCKER_CONFIG /kaniko-dist/.docker/
|
||||
ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko-dist/.config/gcloud/docker_credential_gcr_config.json
|
||||
|
||||
ENV PATH /usr/local/bin:/kaniko:$PATH
|
||||
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
|
||||
## add symlinks for kaniko
|
||||
RUN ln -s /kaniko-dist/executor /kaniko-dist/kaniko-executor && \
|
||||
ln -s /kaniko-dist/warmer /kaniko-dist/kaniko-warmer
|
||||
|
||||
# Adding crane to the image
|
||||
COPY --from=crane /ko-app/crane /usr/local/bin/crane
|
||||
|
||||
# Adding jq to the image
|
||||
RUN apk add --no-cache jq
|
||||
|
||||
# Copy entry point
|
||||
COPY entry_point.sh /root/entry_point.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ if [ -z "$BUILD_IMAGE_NO_MESSAGE" ]; then
|
|||
echo "You are using a GitLab CI build-image with kaniko and crane"
|
||||
echo "You can suppress this message by setting BUILD_IMAGE_NO_MESSAGE"
|
||||
|
||||
/kaniko/executor version
|
||||
kaniko-executor version
|
||||
echo "Crane version: $(crane version)"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue