Metadata-Version: 2.1
Name: pykaniko
Version: 1.1.0
Summary: Python kaniko https://github.com/GoogleContainerTools/kaniko
Home-page: https://github.com/nxexox/pykaniko
Author: Deys Timofey
Author-email: nxexox@gmail.com
Maintainer: Deys Timofey
Maintainer-email: nxexox@gmail.com
License: Apache 2.0
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
License-File: LICENSE

### [Kaniko](https://github.com/GoogleContainerTools/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:
```python
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:
```python
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,
)
```
