This repository contains a up-to-date container image of Kaniko, based on the forked source code that is being maintained and published by Chainguard.
Kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster. It doesn't depend on a Docker daemon and executes each command in a Dockerfile completely in userspace. This enables building container images in environments that can't easily or securely run a Docker daemon, such as a standard Kubernetes cluster.
kaniko-build-image:
stage: build
image:
name: ghcr.io/onzack/chainguard-kaniko-debug:latest
entrypoint: [""]
pull_policy: always
before_script:
- cat <ADDITIONAL CA CERT> >> /kaniko/ssl/certs/additional-ca-cert-bundle.crt
- |
mkdir -p /kaniko/.docker
cat <<EOF > /kaniko/.docker/config.json
{
"auths": {
"<REGISTRY URL>": {
"auth": "$(echo -n <REGISTRY USER>:<REGISTRY USER PASSWORD> | base64)"
}
}
}
EOF
script:
- /kaniko/executor
--context ${CI_PROJECT_DIR}
--dockerfile Dockerfile
--cache=true
--cache-run-layers
--cache-copy-layers
--no-push=false
--destination <REGISTRY URL>/<IMAGE PATH AND NAME>:<IMAGE TAG>
This repository contains a container image based on the upstream Chainguard Kaniko project. For contributions related to Kaniko itself, please refer to:
For issues specific to this container image, please open an issue in this repository. For general Kaniko questions or issues, please refer to the upstream repositories.
This project is licensed under the same terms as the upstream Kaniko project. Please refer to the Chainguard Kaniko license for details.