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,
)
Metadata
Release files for pykaniko 1.1.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 |
|---|---|---|---|---|
| pykaniko-1.1.0.tar.gz | 9.4 kB | Without provenance | Details for pykaniko-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pykaniko-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pykaniko-1.1.0-py3-none-any.whl |
Total release size: 19.3 kB
Release files / pykaniko-1.1.0.tar.gz
| Download URL | pykaniko-1.1.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b1686d09179a51b35795954f3a7beb962b54c662a61841329ebe3d40e24c64e
|
|
BLAKE2b-256 checksum How to use checksums |
8fb705cafa0bb84e1095d167762a6de496dca1753ff531588f834cd5904ccf16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.2
|
Release files / pykaniko-1.1.0-py3-none-any.whl
| Download URL | pykaniko-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89dc99e8bcb475b70f8a41a1796bb76e61b3e8fe818e0fbc9921034f4be53daa
|
|
BLAKE2b-256 checksum How to use checksums |
b23695e8d8d2db331bb40246de2f94a85149268134e3e4c4c72faba0da030c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.2
|
Security for pykaniko 1.1.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.