# cri-o/packaging architecture

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

- Interactive diagram: https://gitdiagram.com/cri-o/packaging
- Repository: https://github.com/cri-o/packaging

## Overview

CRI-O Packaging organizes CRI-O releases into stable and prerelease streams and makes packages available through OBS for RPM- and DEB-based distributions. The README also documents direct use of static bundles and CRI-O bundles as OCI artifacts. Source excerpts were not provided, so this map follows documented capabilities and relationships only; it does not infer internal script calls or packaging steps from filenames.

Main entry points: [`README.md`](https://github.com/cri-o/packaging/blob/main/README.md) (CRI-O packaging), [`templates/latest/cri-o/bundle`](https://github.com/cri-o/packaging/tree/main/templates/latest/cri-o/bundle) (Static bundles), [`templates`](https://github.com/cri-o/packaging/tree/main/templates) (Stable streams), [`templates/latest/cri-o/cri-o.spec`](https://github.com/cri-o/packaging/blob/main/templates/latest/cri-o/cri-o.spec) (RPM packages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_release["Release streams"]
  node_packaging["CRI-O packaging<br/>[README.md]"]
  node_stable["Stable streams"]
  node_prerelease["Prerelease streams"]
end

subgraph group_delivery["Distribution"]
  node_obs{{"Open Build Service"}}
  node_rpm["RPM packages<br/>[cri-o.spec]"]
  node_deb["DEB packages"]
end

subgraph group_bundles["Bundle formats"]
  node_static["Static bundles"]
  node_oci["OCI artifacts"]
end

node_maintainers(("Package maintainers"))
node_rpmusers(("RPM distribution users"))
node_debusers(("DEB distribution users"))
node_bundleusers(("Bundle users"))

node_maintainers -->|"maintain"| node_packaging
node_packaging -->|"uses"| node_obs
node_packaging -->|"organizes stable"| node_stable
node_packaging -->|"organizes prerelease"| node_prerelease
node_rpmusers -->|"install"| node_rpm
node_debusers -->|"install"| node_deb
node_bundleusers -->|"use directly"| node_static
node_static -->|"available as"| node_oci

click node_packaging "https://github.com/cri-o/packaging/blob/main/README.md"
click node_stable "https://github.com/cri-o/packaging/tree/main/templates"
click node_prerelease "https://github.com/cri-o/packaging/tree/main/templates"
click node_rpm "https://github.com/cri-o/packaging/blob/main/templates/latest/cri-o/cri-o.spec"
click node_deb "https://github.com/cri-o/packaging/tree/main/scripts"
click node_static "https://github.com/cri-o/packaging/tree/main/templates/latest/cri-o/bundle"
click node_oci "https://github.com/cri-o/packaging/blob/main/scripts/oci-artifacts"

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_packaging,node_stable,node_prerelease,node_rpmusers,node_debusers,node_bundleusers toneBlue
class node_obs,node_rpm,node_deb toneAmber
class node_static,node_oci toneMint
class node_maintainers toneIndigo
```

## Components

### Release streams

- [CRI-O packaging](https://github.com/cri-o/packaging/blob/main/README.md): `README.md`
- [Stable streams](https://github.com/cri-o/packaging/tree/main/templates): `templates`
- [Prerelease streams](https://github.com/cri-o/packaging/tree/main/templates): `templates`

### Distribution

- **Open Build Service**
- [RPM packages](https://github.com/cri-o/packaging/blob/main/templates/latest/cri-o/cri-o.spec): `templates/latest/cri-o/cri-o.spec`
- [DEB packages](https://github.com/cri-o/packaging/tree/main/scripts): `scripts`

### Bundle formats

- [Static bundles](https://github.com/cri-o/packaging/tree/main/templates/latest/cri-o/bundle): `templates/latest/cri-o/bundle`
- [OCI artifacts](https://github.com/cri-o/packaging/blob/main/scripts/oci-artifacts): `scripts/oci-artifacts`

### Other components

- **Package maintainers**
- **RPM distribution users**
- **DEB distribution users**
- **Bundle users**

## Connections

- Package maintainers → CRI-O packaging: maintain (evidence: `README.md`)
- CRI-O packaging → Open Build Service: uses (evidence: `README.md`)
- CRI-O packaging → Stable streams: organizes stable (evidence: `README.md`)
- CRI-O packaging → Prerelease streams: organizes prerelease (evidence: `README.md`)
- RPM distribution users → RPM packages: install (evidence: `README.md`)
- DEB distribution users → DEB packages: install (evidence: `README.md`)
- Bundle users → Static bundles: use directly (evidence: `README.md`)
- Static bundles → OCI artifacts: available as (evidence: `README.md`)
