Image tools for the Stackable Data Platform.
Project description
image-tools v0.0.8
Commandline tools to manage Stackable container images available at https://github.com/stackabletech/docker-images
This repository (and the installable package) contain two tools:
bake
: build and publish product images.check-container
: run RedHat preflight checks on container images.
Usage examples
Run either bake
or check-container
with --help
to get an overview of the accepted flags and their functionality.
Below are some common usage examples:
# Build images of the hello-world containers
bake -p hello-world -i 0.0.0-dev
# Build only one version [0.37.2] of OPA
bake -p opa=0.37.2 -i 0.0.0-dev
# Build half of all versions defined for OPA
bake -p opa -i 0.0.0-dev --shard-count 2 --shard-index 0
# Build the other half of all versions defined for OPA
bake -p opa -i 0.0.0-dev --shard-count 2 --shard-index 1
Installation
We recommend to use pipx:
pipx install image-tools-stackabletech
But you can also use pip
:
# from PyPI
pip install image-tools-stackabletech
# from GitHub
pip install git+https://github.com/stackabletech/image-tools.git@main
Or via Nix Shell:
{ lib, pkgs, ... }:
with lib;
let
image-tools = pkgs.callPackage (pkgs.fetchFromGitHub {
owner = "stackabletech";
repo = "image-tools";
rev = "caa4d993bcbb8b884097c89a54ee246f975e2ec6";
hash = "sha256-gjTCroHw4iJhXPW+s3mHBzIH8seIKH1tPb82lUb8+a0="; # comment out to find new hashes when upgrading
} + "/image-tools.nix") {};
in
{
packages = with pkgs; [
image-tools
# ...
];
// ...
}
Release a new version
Update the version in:
src/image_tools/version.py
README.md
: version and pip install command.
Update the CHANGELOG. Commit and tag. Build and publish:
rm -rf dist/
python -m build --sdist --wheel .
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for image_tools_stackabletech-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c9c74832c39c2727bb4cedf88968d4da44efd6d852ddc9c1e893f6c99227c54 |
|
MD5 | d1ba8a1db26081d9ede82f565cd2fa82 |
|
BLAKE2b-256 | 4cd38063f20feb1a668be87b8ff2adcdda4fe2eee36915c0fb06d7fe04b41433 |
Close
Hashes for image_tools_stackabletech-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5fec79fb4b5959a874bc4a12c08694a4ef7a81cac277180fbd723c59ea62160 |
|
MD5 | 4d7f79af98e188e891e83f148c3415e4 |
|
BLAKE2b-256 | af76af4d3113eef0b4364c035daac93b32eec2bc1445785bf628efdb66b12505 |