Skip to main content

EpicMorg: Kaniko-Compose Wrapper - CLI wrapper for Kaniko build system

Project description

Activity GitHub issues GitHub forks GitHub stars Size Release GitHub license Changelog PyPI - Downloads

Description

Python wrapper for run kaniko from shell with parameters from docker-compose.yml file.

Motivation

  1. You have Docker project thar contains: 1.1 docker-compose.yml - as build manifest 1.2 One or more Dockerfiles in project
  2. You want to automate builds with kaniko build system.
  3. kaniko dont support docker-compose.yml builds.

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 kaniko in 2025 and gcr.io/kaniko-project/executor is frozen at v1.24.0. The default executor is now the community fork ghcr.io/osscontainertools/kaniko:latest. Pin a tag in CI and override with --kaniko-image / KANIKO_IMAGE if 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 all x-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) or podman
  • --version, -v - Show script version
  • --help, -h - Show this help message and exit

Supported features (example):

  1. Single project in docker-compose.yml
services:
  app:
    image: "EpicMorg/kaniko-wrapper:image"
    build:
      context: .
      dockerfile: ./Dockerfile
  1. 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
  1. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaniko_wrapper-2.0.2.6.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaniko_wrapper-2.0.2.6-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file kaniko_wrapper-2.0.2.6.tar.gz.

File metadata

  • Download URL: kaniko_wrapper-2.0.2.6.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for kaniko_wrapper-2.0.2.6.tar.gz
Algorithm Hash digest
SHA256 e54066f1fc8ba5a7aa7095aed0daf6c24005d72b0d9deb2c37b5dcc53d26321f
MD5 b0cddef59f7aa9a66c362caafc97f825
BLAKE2b-256 f6af27e4c225b42a25868459dfca4d20db629564f64bc86f06877c67c826a893

See more details on using hashes here.

File details

Details for the file kaniko_wrapper-2.0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for kaniko_wrapper-2.0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b1a394fb2f85e1edf1b91877436e6a0627af62b9530045943a6bf6d577a3c50f
MD5 e7756222142695009050e7735710bd5b
BLAKE2b-256 71611d5d9145906c93c73ac3abfeecf64ced98c39f90a01cc8bcd928897326b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page