Kaniko
- Original GoogleContainerTools/kaniko is archived
- There are two forks:
- Another image registry: kaniko-build/build
- Repository to build OCI images of Kaniko's forks
Gitlab CI/CD components
- gitlab.com CI/CD Catalog: kaniko components
- to-be-continuous/docker
- Supports Kaniko, Buildah, Docker
- Still using the deprecated old
gcr.io/kaniko-project/executorimage - Default to Buildah due to Kaniko being unmaintained?
- guided-explorations/ci-components/kaniko
- Still using the deprecated old
gcr.io/kaniko-project/executorimage
- Still using the deprecated old
- Deprecated gitlab.org kaniko CI template
Issues
Cross-compiling
Beware: Need to run on target architecture hosts
You can pass in docker args:
kaniko --build-arg opts="CGO_ENABLED=0 GOARCH=amd64"
Multi-arch images
Currently not supported, see how to build multi-arch image using kaniko See also Creating Multi-arch Container Manifests Using Kaniko and Manifest-tool:
While Kaniko itself currently does not support creating multi-arch manifests (contributions welcome), one can use tools such as manifest-tool to stitch multiple separate builds together into a single container manifest.