bpcli
Uses Dagger Python SDK to build an app with buildpacks and pushes the built image to a registry.
bpcli calls the Cloud Native Buildpacks lifecycle
commands from within a builder
container to build or rebase images.
It does not rely on the Pack CLI.
Also bpcli does not require Docker, if a buildkit daemon is available. This has currently been tested with Podman.
Install
pip install bpcli
Usage
Build
Usage: bpcli build [OPTIONS] IMAGE
Generate app image from source code using the provided image name.
Options:
--builder TEXT Builder image [default:
paketobuildpacks/builder:base]
--path TEXT Path to app dir [default: .]
--log-level TEXT Log level [default: info]
--docker-config-json TEXT Path to docker config json file with registry
credentials
--env TEXT Set an environment variable
--help Show this message and exit.
Examples
bpcli build --path=/path/to/your/go/app <your image name>
Build a PHP application using the paketo full builder, with debug logs, registry authentication and report containing the image tag and digest:
bpcli build \
--path=/path/to/your/php/app \
--builder=paketobuildpacks/builder:full \
--log-level=debug foo/bar \
--docker-config-json=$HOME/.docker/config.json > report.toml
Adding environment variables:
bpcli build --path=/path/to/your/app foo/bar --env FOO=bar --env BAR=foo
Rebase
Usage: bpcli rebase [OPTIONS] IMAGE
Rebase app image.
Options:
--builder TEXT Builder image [default:
paketobuildpacks/builder:base]
--log-level TEXT Log level [default: info]
--docker-config-json TEXT Path to docker config json file with registry
credentials
--help Show this message and exit.
Example
bpcli rebase --log-level=debug --docker-config-json=$HOME/.docker/config.json foo/bar
Metadata
Release files for bpcli 0.3.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 |
|---|---|---|---|---|
| bpcli-0.3.0.tar.gz | 3.8 kB | Without provenance | Details for bpcli-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bpcli-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for bpcli-0.3.0-py3-none-any.whl |
Total release size: 8.2 kB
Release files / bpcli-0.3.0.tar.gz
| Download URL | bpcli-0.3.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32394e4416b6af5a045acbddfdc8d5448016fc916c38dae31395031e019c40cc
|
|
BLAKE2b-256 checksum How to use checksums |
f3f33a3d49c00aa9fb854dcff6fbda8368b6af4465f2cdfa4e4a7e6978b35c44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / bpcli-0.3.0-py3-none-any.whl
| Download URL | bpcli-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f1cff0bf287bdf3ca9a8e9e077be21c7f4e9575de4dddd719098e9bcd1e83ce
|
|
BLAKE2b-256 checksum How to use checksums |
e7fbe330b8005150bd65477a23442b4cd3a791f38a8e1211f2a5e1eddab7379e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for bpcli 0.3.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.