Description
Python wrapper for run kaniko from shell with parameters from docker-compose.yml file.
Motivation
- You have Docker project thar contains:
1.1
docker-compose.yml- as build manifest 1.2 One or moreDockerfiles in project - You want to automate builds with
kanikobuild system. kanikodont supportdocker-compose.ymlbuilds.
How to
pip install kaniko-wrapper
cd <...>/directory/contains/docker/and/docker-compose-file/
kaniko-wrapper
Note on the executor image. Google archived the original
kanikoin 2025 andgcr.io/kaniko-project/executoris frozen atv1.24.0. The default executor is now the community forkghcr.io/osscontainertools/kaniko:latest. Pin a tag in CI and override with--kaniko-image/KANIKO_IMAGEif needed.
Arguments (examples)
--compose-file- Path to docker-compose.yml file--kaniko-image- Kaniko executor image (def.ghcr.io/osscontainertools/kaniko:latest)--push,--deploy,-d,-p- Build and push to the registry and allx-mirrors--dry-run,--dry- Dry run: build images without pushing--no-push- Build without pushing to the registry--verbose,-V- Verbose output (shortcut for--log-level DEBUG)--log-level- Override log level:DEBUG,INFO,WARNING,ERROR,CRITICAL--engine- Container engine:docker(default) orpodman--version,-v- Show script version--help,-h- Show this help message and exit
Supported features (example):
- Single project in
docker-compose.yml
services:
app:
image: "EpicMorg/kaniko-wrapper:image"
build:
context: .
dockerfile: ./Dockerfile
- Multiproject in
docker-compose.yml
services:
app:
image: "EpicMorg/kaniko-wrapper:image-jdk11"
build:
context: .
app-develop:
image: "EpicMorg/kaniko-wrapper:image-develop-jdk11"
build:
context: .
dockerfile: ./Dockerfile.develop
app-develop-17:
image: "epicmorg/astralinux:image-develop-jdk17"
build:
context: .
dockerfile: ./Dockerfile.develop-17
- Mirrors — push one build to several registries
Add an x-mirrors list to a service. On --push, the built image is pushed to
the primary image and to every mirror in a single build (multiple
--destination). A failed push to any mirror fails the build. All target
registries must be authenticated in ~/.docker/config.json.
services:
app:
image: docker.io/epicmorg/app:latest
build:
context: .
x-mirrors:
- quay.io/epicmorg/app:latest
Metadata
Release files for kaniko-wrapper 2.0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kaniko_wrapper-2.0.3.0.tar.gz | 26.7 kB | Without provenance | Details for kaniko_wrapper-2.0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaniko_wrapper-2.0.3.0-py3-none-any.whl | Python 3 | none | any | Details for kaniko_wrapper-2.0.3.0-py3-none-any.whl |
Total release size: 43.6 kB
Release files / kaniko_wrapper-2.0.3.0.tar.gz
| Download URL | kaniko_wrapper-2.0.3.0.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eab231eb713159a9665b4f0e3478a2348c2aa53ab9be9b0647c2805a590d0a81
|
|
BLAKE2b-256 checksum How to use checksums |
bbcf1caa655b1abd549ce43b03b90064f08bb94050e22bda7faed78edfece557
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / kaniko_wrapper-2.0.3.0-py3-none-any.whl
| Download URL | kaniko_wrapper-2.0.3.0-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0af8414e88a1dc94205a8dff9c347aa1e96045b7afee09d1ec32d6123f6ba9a
|
|
BLAKE2b-256 checksum How to use checksums |
26fc8df74c012d25908d16348a9986fe9eef910e2033341619cba7a0293001ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for kaniko-wrapper 2.0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.