Skip to main content

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)

Source distribution for bpcli 0.3.0
File Size Uploaded
bpcli-0.3.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bpcli 0.3.0
File Interpreter ABI Platform
bpcli-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page