Skip to main content

Python kaniko https://github.com/GoogleContainerTools/kaniko

Project description

Kaniko is a tool to build container images from a Dockerfile


How to install

For installation kaniko add in your Dockerfile the next lines

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
...

pip

pip install kaniko

How to use:

from kaniko import Kaniko, KanikoSnapshotMode

kaniko = Kaniko()
kaniko.dockerfile = '/path/to/Dockerfile'
kaniko.no_push = True
kaniko.snapshot_mode = KanikoSnapshotMode.full

build_logs = kaniko.build()  # List[str]

Another way:

from kaniko 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',
    snapshot_mode=KanikoSnapshotMode.full,
)

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

pykaniko-1.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

pykaniko-1.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file pykaniko-1.1.0.tar.gz.

File metadata

  • Download URL: pykaniko-1.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.2

File hashes

Hashes for pykaniko-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2b1686d09179a51b35795954f3a7beb962b54c662a61841329ebe3d40e24c64e
MD5 83d3917d14d59aea09a20e85a13526a2
BLAKE2b-256 8fb705cafa0bb84e1095d167762a6de496dca1753ff531588f834cd5904ccf16

See more details on using hashes here.

File details

Details for the file pykaniko-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pykaniko-1.1.0-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.8.2

File hashes

Hashes for pykaniko-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89dc99e8bcb475b70f8a41a1796bb76e61b3e8fe818e0fbc9921034f4be53daa
MD5 86101c3f2db814a8bfe51cb76f2b8936
BLAKE2b-256 b23695e8d8d2db331bb40246de2f94a85149268134e3e4c4c72faba0da030c43

See more details on using hashes here.

Supported by

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