Skip to main content

redbuild

magic containerized builds

overview

redbuild enables software to be built in pre-defined environments using the power of containerization. with podman installed, any supported project can be built with a single command. projects provide a build.docker and build.sh for defining the build environment and build steps.

redbuild: just add water!

install stable version from pypi

# with uv
uv tool install redbuild
# with pipx (recommended)
pipx install redbuild
# with vanilla pip
pip install redbuild

build from source

local install:

uv sync --locked
uv run redbuild --help

containerized bootstrap (optional):

./bootstrap/redbuild.sh

try the example!

cd example
redbuild build

detailed usage

creating the build environment and build script

  1. create a build.docker file in the project root. this file should contain a FROM directive for the base image to use for the build environment. the build environment should contain all the tools necessary to build the project. it's also very important that the last line of the dockerfile is CMD ["/bin/bash", "-l"]. this is necessary for redbuild to work.

    an example build.docker:

    FROM debian:bookworm-slim
    
    # install dependencies
    RUN apt-get update && apt-get install -y \
        bash \
        curl wget xz-utils \
        gcc make libc6-dev libcurl4 \
        git libxml2 \
        && rm -rf /var/lib/apt/lists/* && apt autoremove -y && apt clean
    
    
    # install dlang
    RUN curl -fsS https://dlang.org/install.sh | bash -s install ldc-1.30.0 \
        && echo "source ~/dlang/ldc-1.30.0/activate" >> ~/.bashrc
    
    # set up main to run bash (necessary for redbuild)
    CMD ["/bin/bash", "-l"]
    
  2. create a build.sh file in the project root. this file should contain the steps necessary to build the project. the build script should be written to be run in the build environment.

    build.sh:

    #!/usr/bin/env bash
    set -e
    dub build --compiler ldc2 -B release
    

    make it executable:

    chmod +x build.sh
    

that's it! now you can build the project with redbuild build, copy it into the project root, and run it. you can also open an interactive shell in the build environment with redbuild shell.

Metadata

Release files for redbuild 2.6.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 redbuild 2.6.0
File Size Uploaded Provenance
redbuild-2.6.0.tar.gz 416.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 426.1 kB

Release files / redbuild-2.6.0.tar.gz

Download URL redbuild-2.6.0.tar.gz
Size 416.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7ce308c64963632414d81687e60c15d7c0b64195c46c5fca4079e93daf89c577
BLAKE2b-256 checksum
How to use checksums
941de7d0ac0069154afb8ec82437106dfe1958cd88c7e6573a064c5ba10d3e06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / redbuild-2.6.0-py3-none-any.whl

Download URL redbuild-2.6.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f556c6bb0c57fec2f5caca267d4fc63af2e8760a3b7280be06441bc4a6a45b05
BLAKE2b-256 checksum
How to use checksums
c840a7126ce17baa7e8371d13d8966ca3b1b352f1e35a232a50789c62ac9f61f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for redbuild 2.6.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.

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