Python Kaniko https://github.com/GoogleContainerTools/Kaniko
Project description
Paniko
Paniko is a Python wrapper for Google's Kaniko. Kaniko is a command line utility that enables the building of container images within environments that can't easily or securely run a Docker daemon. This includes building images within a Kubernetes Pod or serverless infrastructure such as AWS's Fargate.
It includes the most updated Kaniko commands and streaming of Kaniko's outputs.
This package builds off of Timofey's pykaniko package.
Install
For installation kaniko add in your Dockerfile the next lines
pip install git+https://github.com/wfclark5/paniko.git
#Dockerfile
FROM gcr.io/kaniko-project/executor:v0.12.0 AS kaniko
FROM <your docker repo>
ENV DOCKER_CONFIG /kaniko/.docker
COPY --from=kaniko /kaniko /kaniko
...
Usage
from paniko import Kaniko, KanikoSnapshotMode
kaniko = Kaniko()
build_logs = kaniko.build(
docker_registry_uri='https://index.docker.io/v1/',
registry_username='username',
registry_password='password',
destination='path-to-repo:tag',
dockerfile='/path/to/Dockerfile',
force=True,
snapshot_mode=KanikoSnapshotMode.full,
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file paniko-1.0.1.tar.gz
.
File metadata
- Download URL: paniko-1.0.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da1bcc4025a5be9c4a7b66c932632cdc053ef607f0c07e0bfdacc1a796f5aa6 |
|
MD5 | 4fcf9d99ecffde067a190bc61e29e6fc |
|
BLAKE2b-256 | 69a814a42d12358ccedcb674365b18051a60b3f5c948fe07e8a320ec16ef0644 |
File details
Details for the file paniko-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: paniko-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5269aabb4650ba17a92a424a31ae6badf8f60fe05f3f37d25e632398b94b0b7 |
|
MD5 | f1e5f9ed1dc200adcbf40a3b64d61fe1 |
|
BLAKE2b-256 | d432d5abbaa7dc381e740e8b7a18640827e6b9133c8d0fda2fdb89098ac9352b |