The Kraken standard library.
Project description
kraken-std
The Kraken standard library.
Features
Cargo
Build Rust projects with Cargo.
Features
- Inject HTTP(S) Basic-auth credentials into Git clone and Cargo download requests in
cargo build
for compatibility with private registries (workaround until rust-lang/cargo#10592 is working and merged).
Quickstart
# kraken.build.py
from kraken.std.cargo import cargo_build, cargo_publish, cargo_settings
settings = cargo_settings()
settings.add_auth("example.jfrog.io", "me@example.org", "<API_TOKEN>")
settings.add_registry(
"private-repo",
"https://example.jfrog.io/artifactory/git/default-cargo-local.git",
publish_token="Bearer ${PASSWORD}",
)
cargo_build()
cargo_publish(registry="private-repo")
Note
- The registry URL configured in the Kraken build script is currently written only temporarily into the
.cargo/config.toml
configuration file. In a future version, we may permanently write it into the file to keep it synchronized or instead pick up the configured registries by reading the configuration file instead.
Integration tests
The cargo_publish()
and cargo_build()
tasks are continuously integration tested against JFrog Artifactory
and Cloudsmith.
Docker
Build and publish Docker images.
Supported backends
Quickstart
# kraken.build.py
from kraken.std.docker import build_docker_image
build_docker_image(
name="buildDocker",
dockerfile="docker/release.Dockerfile",
tags=["kraken-example"],
load=True,
)
Helm
Package and publish Helm charts to OCI or HTTP(S) registries.
Quickstart
# kraken.build.py
from kraken.std.helm import helm_push, helm_package, helm_settings
helm_settings().add_auth("example.jfrog.io", "me@example.org", "api_token")
package = helm_package(chart_path="./my-helm-chart")
helm_push(chart_tarball=package.chart_tarball, registry="example.jfrog.io/helm-local", tag)
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
kraken-std-0.1.6.tar.gz
(19.8 kB
view hashes)
Built Distribution
kraken_std-0.1.6-py3-none-any.whl
(24.1 kB
view hashes)
Close
Hashes for kraken_std-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c294e1c7925d732fe14cbf87d72d874b95c459c626d5b38f317af3265d69e3a |
|
MD5 | 82cff06632a01e112480ca568d8b1fa4 |
|
BLAKE2b-256 | 6e2e96025ad966eaf6e07c7c354896dd0e31bfe7744f771bb5a2ff911fef51da |