How quipucords/downstream-builder works
Project type and purpose
• This is a containerized CLI tool (“Quipucords Downstream Builder”) written in Python. Its purpose is to orchestrate RPM and container builds for Quipucords/Discovery downstream projects without requiring local installation of rhpkg or brewkoji.
File structure
• Top-level files:
• Containerfile: Defines the container image.
• pyproject.toml: Python packaging/build config.
• README.md/.env-example: Usage and environment defaults.
• configs/: Git & Kerberos configs the container consumes.
• scripts/: Helper shell scripts.
• Python package “discobuilder/”:
• __main__.py: Entry point.
• builder/: Business logic for CLI, installer, server.
• adapter/: Abstraction layer over external tools (git, Kerberos, rhpkg, rpmbuild, chaski, subprocess).
• config.py: Loads .env and config files.
README for additional insights
• The workflow:
• Build container.
• Mount host directories (repos, cache).
• Load .env into environment.
• Run interactive CLI that drives downstream builds.
• Interacts via VPN with internal Red Hat build hosts and services.
• External dependencies: git repos, brewkoji, Kerberos, container registry, rpm build services.
Detailed capture of architectural elements
• Containerfile as the build descriptor feeding into the Container runtime.
• That after a successful run the user lands in a bash shell inside the container for manual steps.