Skip to main content

The Kraken standard library.

Project description

kraken-std

Python application PyPI version

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

This version

0.1.6

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)

Uploaded Source

Built Distribution

kraken_std-0.1.6-py3-none-any.whl (24.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page