# technobureau/docker-build-scripts architecture

> Architecture diagram of the GitHub repository technobureau/docker-build-scripts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/technobureau/docker-build-scripts
- Repository: https://github.com/technobureau/docker-build-scripts

## Overview

This repository is a collection of container-build and runtime utilities. Its main user workflow sources the universal CI engine, configures an image build, and produces container images; separate branches cover image promotion, declarative RPM image generation, Docker setup and hardening, and runtime libraries copied into built images. The README documents these capabilities but no source excerpts were provided, so edges are limited to relationships it states explicitly.

Main entry points: [`build/universal-ci.sh`](https://github.com/technobureau/docker-build-scripts/blob/main/build/universal-ci.sh) (Universal CI engine), [`build/lib/hummingbird`](https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird) (Image generators), [`build/promotion.sh`](https://github.com/technobureau/docker-build-scripts/blob/main/build/promotion.sh) (Promotion command), [`build/lib/ci-hummingbird.sh`](https://github.com/technobureau/docker-build-scripts/blob/main/build/lib/ci-hummingbird.sh) (Hummingbird driver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ci["CI builds"]
  node_universal["Universal CI engine<br/>[universal-ci.sh]"]
  node_ci_libs["CI libraries"]
  node_ci_hb["Hummingbird driver<br/>[ci-hummingbird.sh]"]
end

subgraph group_hb["Hummingbird images"]
  node_hb_generators["Image generators"]
  node_hb_inputs["Build definitions"]
  node_hb_rootfs["Root filesystem<br/>[rootfs.sh]"]
  node_hb_security["OSCAP compliance"]
end

subgraph group_promotion["Image promotion"]
  node_promotion_script["Promotion command<br/>[promotion.sh]"]
  node_promotion_lib["Promotion helpers<br/>[ci-promote.sh]"]
end

subgraph group_container["Container utilities"]
  node_docker_scripts["Docker setup scripts"]
  node_hardening["OSCAP hardening"]
end

subgraph group_runtime["Image runtime"]
  node_runtime_libs["Runtime libraries"]
end

node_consumer(("Consumer repository"))
node_registries[("Image registries")]
node_runtime_image[("Built image")]

node_consumer -->|"sources and calls"| node_universal
node_universal -->|"uses modular libraries"| node_ci_libs
node_universal -->|"selects flavor driver"| node_ci_hb
node_ci_hb -->|"drives image generation"| node_hb_generators
node_hb_inputs -->|"defines image inputs"| node_hb_generators
node_hb_generators -->|"includes runtime libraries"| node_runtime_libs
node_promotion_script -->|"uses helpers"| node_promotion_lib
node_promotion_script -->|"promotes images between"| node_registries
node_docker_scripts -->|"includes hardening script"| node_hardening
node_runtime_libs -->|"copied into"| node_runtime_image

click node_universal "https://github.com/technobureau/docker-build-scripts/blob/main/build/universal-ci.sh"
click node_ci_libs "https://github.com/technobureau/docker-build-scripts/tree/main/build/lib"
click node_ci_hb "https://github.com/technobureau/docker-build-scripts/blob/main/build/lib/ci-hummingbird.sh"
click node_hb_generators "https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird"
click node_hb_inputs "https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird"
click node_hb_rootfs "https://github.com/technobureau/docker-build-scripts/blob/main/build/lib/hummingbird/rootfs.sh"
click node_hb_security "https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird/oscap"
click node_promotion_script "https://github.com/technobureau/docker-build-scripts/blob/main/build/promotion.sh"
click node_promotion_lib "https://github.com/technobureau/docker-build-scripts/blob/main/build/lib/ci-promote.sh"
click node_docker_scripts "https://github.com/technobureau/docker-build-scripts/tree/main/docker"
click node_hardening "https://github.com/technobureau/docker-build-scripts/blob/main/docker/docker-hardening-oscap.sh"
click node_runtime_libs "https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird/prebuildfs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_universal,node_ci_libs,node_ci_hb toneBlue
class node_hb_generators,node_hb_inputs,node_hb_rootfs,node_hb_security,node_registries,node_runtime_image toneAmber
class node_promotion_script,node_promotion_lib toneMint
class node_docker_scripts,node_hardening toneRose
class node_runtime_libs,node_consumer toneIndigo
```

## Components

### CI builds

- [Universal CI engine](https://github.com/technobureau/docker-build-scripts/blob/main/build/universal-ci.sh): `build/universal-ci.sh`
- [CI libraries](https://github.com/technobureau/docker-build-scripts/tree/main/build/lib): `build/lib`
- [Hummingbird driver](https://github.com/technobureau/docker-build-scripts/blob/main/build/lib/ci-hummingbird.sh): `build/lib/ci-hummingbird.sh`

### Hummingbird images

- [Image generators](https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird): `build/lib/hummingbird`
- [Build definitions](https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird): `build/lib/hummingbird`
- [Root filesystem](https://github.com/technobureau/docker-build-scripts/blob/main/build/lib/hummingbird/rootfs.sh): `build/lib/hummingbird/rootfs.sh`
- [OSCAP compliance](https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird/oscap): `build/lib/hummingbird/oscap`

### Image promotion

- [Promotion command](https://github.com/technobureau/docker-build-scripts/blob/main/build/promotion.sh): `build/promotion.sh`
- [Promotion helpers](https://github.com/technobureau/docker-build-scripts/blob/main/build/lib/ci-promote.sh): `build/lib/ci-promote.sh`

### Container utilities

- [Docker setup scripts](https://github.com/technobureau/docker-build-scripts/tree/main/docker): `docker`
- [OSCAP hardening](https://github.com/technobureau/docker-build-scripts/blob/main/docker/docker-hardening-oscap.sh): `docker/docker-hardening-oscap.sh`

### Image runtime

- [Runtime libraries](https://github.com/technobureau/docker-build-scripts/tree/main/build/lib/hummingbird/prebuildfs): `build/lib/hummingbird/prebuildfs`

### Other components

- **Consumer repository**
- **Image registries**
- **Built image**

## Connections

- Consumer repository → Universal CI engine: sources and calls (evidence: `README.md`)
- Universal CI engine → CI libraries: uses modular libraries (evidence: `README.md`)
- Universal CI engine → Hummingbird driver: selects flavor driver (evidence: `README.md`)
- Hummingbird driver → Image generators: drives image generation (evidence: `README.md`)
- Build definitions → Image generators: defines image inputs (evidence: `README.md`)
- Image generators → Runtime libraries: includes runtime libraries (evidence: `README.md`)
- Promotion command → Promotion helpers: uses helpers (evidence: `README.md`)
- Promotion command → Image registries: promotes images between (evidence: `README.md`)
- Docker setup scripts → OSCAP hardening: includes hardening script (evidence: `README.md`)
- Runtime libraries → Built image: copied into (evidence: `README.md`)
