Skip to content

onzack/kaniko-chainguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Kaniko Container Image

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.

What is Kaniko?

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.

Usage

Gitlab CI pipeline

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>

Contributing

This repository contains a container image based on the upstream Chainguard Kaniko project. For contributions related to Kaniko itself, please refer to:

Support

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.

License

This project is licensed under the same terms as the upstream Kaniko project. Please refer to the Chainguard Kaniko license for details.

Related Links

About

This repo holds an up to date container image of Kaniko, which is maintained by Chainguard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages