Build (build.py)¶
build.py wraps docker buildx bake to build
(or push) the generated targets from your workstation.
Usage¶
# Build all active targets (bake default group)
python build.py all
# Build a single bake target
python build.py ros2-rolling-base
# Build a bake group (for example, one distro group)
python build.py ros2-jazzy
Options¶
--push: Push results to${DOCKER_REGISTRY:-althack}(or setDOCKER_PUSH=true).--no-clean: Skip the finaldocker system prune -f(or setDOCKER_CLEAN=false).
The script always reads from the generated docker-bake.hcl, updating tags like
registry/repo:image-stage and registry/repo:image-stage-YYYY-MM-DD when pushing.