Project Overview#
About The Project#
Ready-to-build Dockerfiles for multiple targets in one repo, plus the reusable tooling consumer projects build on:
PowerShell modules (
windows/scripts/modules/)bash libraries (
linux/scripts/lib/: agentic-loop, app-runner, cmake-build, code-quality and more)cross-platform shared data (
shared/agentic-loop/prompts/)CI composite actions (
.github/actions/, see its README)the reusable workflows consumers call at
@develop(python-ci-*,build-docs,lint-gates,submodule-pins,container-ci-windows)
The Repo map below is the authoritative index of that half of the repo.
Container registry: ghcr.io/kataglyphis/kataglyphis_beschleuniger
— the multi-arch Linux :latest, the Windows build image :winamd64 and the :winarm64 bundle.
Every tag: Published Images and Tag Hints.
Repo map#
One line per top-level directory, each linking what describes it. No counts: every count written
here has gone stale, and ls answers faster.
Directory |
What lives there |
|---|---|
|
The shared CMake modules consumers |
|
The canonical |
|
Copy-and-edit bash: the |
|
The |
|
The consumer |
|
Cross-platform loop data: the planner/refactor/executor task prompts and the role system prompts both lane implementations read, plus the copy-and-edit consumer templates. Templates |
|
The docs gates and version tooling — |
|
The composite actions consumers call |
|
This repo’s own lanes plus the |
|
The Linux build system: |
|
The Ollama + Open WebUI serving stack. README |
|
A USB-camera object-detection PoC on a Jetson GPU, run in the arm64 GPU wrapper image. README |
|
The slim nginx image and the reusable Flutter-web helpers. README |
|
Host configuration as code: |
|
The owner’s personal operations stacks, deliberately carried here ( |
|
Staged SDK inputs. The QNN and NVIDIA trees are gitignored except their READMEs — login-gated, EULA-bound, never committed. |
|
The Windows lane, grouped into |
|
Prepared upstream submissions, one directory per submission. NOT build inputs, and NOT to be posted without the owner saying so. README |
|
As |
|
The brand and style submodule every docs build reads. |
|
Generated artifacts (OCI layouts, rootfs exports). Gitignored and excluded from every build context. |
Before deleting anything under linux/scripts/lib/, 02-toolchain/rust/, 02-toolchain/python/
or 06-packaging/, grade it with the consumer inventory. Those four hold consumer surface this
repo’s own lanes barely or never call. In-repo, only preflight.sh and flutter_checks.sh source
lib/code-quality.sh. 06-packaging/ also holds the images’ own packaging and smoke scripts.
A sweep once deleted package_archive.sh as “zero-reference” while a consumer’s release job
was calling it. The rule and the mechanism: AGENTS.md § Contributing Reusable Work Here and
consumer-inventory.md.
The architecture summary AGENTS.md carried#
Moved out of AGENTS.md on 2026-09-15 (owner decision D10), with the two sections after it;
corrected since where the code moved. The RULES stayed there; this is the reference behind them.
Three build lanes (Linux Image Chain).
Linux arches:
amd64,arm64,riscv64.Windows host:
windows/amd64only. Windows targets:amd64(image, production) andarm64(cross-compiled artifact bundle).The arm64 lane: plumbing landed 2026-08-22, and the lane BUILDS since 2026-08-23. Nothing it produces runs on the build host: Windows x64 has no ARM64 emulation, so every arm64 signal there is a static PE machine-type check; the bundle runs on an arm64 device or a
windows-11-armrunner (Test-Arm64Bundle.ps1, first device run 2026-10-03,windows-cross-builds.md).Build-Buildkit.ps1 -TargetArch arm64just works:torchis dropped from the DEFAULT stage list with a notice; asking for it explicitly still throws, because it runsuv sync, which must execute the target interpreter. Which components are through: the status banner ofdocs/windows-cross-builds.md. It moves, so do not restate it here.RUNTIME parity since 2026-08-26: the same GStreamer plugin set (200 DLLs, six contract plugins,
gst-ptp-helper; the contract has fourteen since CON183 on 2026-11-04, and the seven WebRTC ones run on an arm64 device since 2026-10-11), the same media/inference surface and the same six python wheels. The TVM/IREE runtime python packages are cross-built and assembled on this lane (#133).amd64-only, a short closed list: classic TensorRT (CUDA/cuDNN are cross-built since #176, 2026-09-20), the TVM and IREE compilers (target-arch LLVM), LiteRT-LM, the torch app stage. The bundle names each with an
ABSENT-ON-ARM64.txt/COMPILER-ABSENT-ON-ARM64.txtmarker, so a consumer never has to guess.
Never publish the arm64 lane’s output with
--platform windows/arm64. It is a cross build out of the samewindows/amd64container, and its product is an artifact bundle, not a runnable image; that flag yields a manifest nothing can run. Why no arm64 Windows container can exist, and the lane’s current coverage:docs/windows-cross-builds.md.The shared base installs four arm64-only prerequisites UNCONDITIONALLY. Never gate them on an arch ARG: that re-pays the chain’s most expensive layers on every lane switch. The base only warns (
Test-Arm64Prereqs.ps1reports on all four); the GStreamer build throws on the ones it needs.WINDOWS_ARM64_STRICT=1promotes the base checks to hard gates, but only as a build-arg (-BuildArg WINDOWS_ARM64_STRICT=1; a host env var alone does nothing), and it never reachesInstall-Vs.ps1’s MSVClib\arm64check (that RUN sits above theARGdeclaration inDockerfile.base). The prerequisite list, rationale and traps:docs/windows-cross-builds.md.
Dockerfile |
FROM |
Produces |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Supported platforms, as AGENTS.md listed them#
Component |
Build platform |
Target platforms |
|---|---|---|
Cross lane (stages 1-5) |
|
|
Runtime lane (stage 6) |
Native or QEMU |
|
Final manifest |
N/A |
Multi-arch: |
Windows lane |
|
|
Windows cross lane |
|
|
riscv64’s feature-parity exemptions: linux-cross-builds.md § Rules for the Linux lane.
Expected outputs, as AGENTS.md listed them#
A successful build-cross-chain.sh run pushes to GHCR:
every cross-lane intermediate image
the per-architecture wrapper images (
:latest-<arch>)the multi-arch manifest (
:latest)
A variant chain (CROSS_VARIANT=nvidia|rocm) writes :latest-<variant>-<arch> and
:latest-<variant> instead; --no-push builds every stage locally and pushes nothing.
Published Images and Tag Hints#
Image |
Platforms |
Tag examples |
Description |
|---|---|---|---|
ghcr.io/kataglyphis/kataglyphis_beschleuniger |
linux/amd64, linux/arm64, linux/riscv64 |
|
The default manifest — the current cross-lane release, Hailo and (when staged) QNN included. Built via digest-pinned stage chain ( |
ghcr.io/kataglyphis/kataglyphis_beschleuniger |
nvidia: linux/amd64 and linux/arm64; rocm: linux/amd64 |
|
A variant’s manifest over its runtime arches, for a stack that cannot ship in |
ghcr.io/kataglyphis/kataglyphis_beschleuniger |
linux/amd64 |
|
Cross-lane intermediate images (amd64-hosted, cross-compiled for target arches; the |
ghcr.io/kataglyphis/kataglyphis_beschleuniger-stages (private) |
linux/amd64 |
|
The nvidia chain’s stages, which carry TensorRT’s SDK (owner 2026-10-21, accelerator images § Stage images). Pulling needs a login. |
ghcr.io/kataglyphis/kataglyphis_beschleuniger |
per-arch native |
|
Runtime lane per-arch wrapper images the manifests are assembled from (internal). The chain pushes |
ghcr.io/kataglyphis/kataglyphis_beschleuniger |
linux/amd64, linux/arm64, linux/riscv64 |
|
Retired old name of |
ghcr.io/kataglyphis/kataglyphis_beschleuniger:webserver |
as built |
|
Minimal nginx static webserver image, built by hand from a named build context ( |
ghcr.io/kataglyphis/kataglyphis_beschleuniger |
windows/amd64 |
|
Windows Server Core 2025 build image with MSVC, LLVM/Clang, Vulkan SDK, Rust, Flutter, WiX — a manifest over |
ghcr.io/kataglyphis/kataglyphis_beschleuniger |
windows/amd64 (arm64 bundle) |
|
The arm64 cross artifact bundle: a |
Check the live index before relying on its arch coverage:
nerdctl manifest inspect ghcr.io/kataglyphis/kataglyphis_beschleuniger:latest. On 2026-08-31 it
(then :latest-cross) carried riscv64 only: a single-arch run had replaced the 3-arch index.
build-runtime-manifest.sh now refuses to shrink an already published index (--force, or
RUNTIME_MANIFEST_COMPLETENESS=0, overrides), so a partial run cannot do it again
(cross-build-verification.md). The 2026-09-02 full-fanout run
restored it: the live index carries amd64/arm64/riscv64 again.
Accelerators in the default image#
Moved from the README on 2026-10-19. An accelerator whose runtime fits the default image is built into it, not into a variant:
Accelerator |
In |
Arches |
|---|---|---|
Hailo-10H (HailoRT, |
always |
amd64, arm64 (riscv64: no upstream support) |
Qualcomm QNN (ORT QNN EP) |
only when a QAIRT zip is staged in |
arm64 |
NVIDIA CUDA / AMD ROCm |
no - |
NVIDIA: amd64 and arm64 (SBSA); ROCm: amd64 |
NVIDIA DeepStream 9.1 |
no - enabled in NVIDIA builds; arm64 uses the staged SBSA payload, with |
amd64, arm64 (SBSA) |
:latest-nvidia carries compiled kernels for the compute capabilities CUDA_ARCHITECTURES
names and nothing else (86, 87, 89 and 120; owner decision 2026-09-23). There is no PTX to fall
back on, so a card outside that list fails at session creation rather than running slowly. The
hardware behind each number, what is left out, and how to change the set:
AGENTS.md § GPU architecture coverage.
Tag naming#
One published tag is one manifest, carrying every architecture its variant supports, on both
lanes. Both lanes publish into the same registry repo, so only one owns the bare :latest: Linux
does, and Windows keeps its lane qualifier.
Default manifest |
Variant manifest |
Per-arch wrapper (internal) |
Cross bundle (NOT a platform) |
|
|---|---|---|---|---|
Linux |
|
|
|
— |
Windows |
|
|
— (one platform) |
|
The grammar is
<version>[-<variant>][-<arch>].latestfills the version slot, so a pinned release is:2026.09/:2026.09-nvidiawith no new rule. Tags are parsed by position, which makes the next bullet a hard rule.<variant>names what makes the image different (nvidia,rocm), never an architecture.:latest-amd64must stay unambiguous, which is whyamdis spelledrocm. A new architecture adds an entry to a variant’s manifest; a new variant adds a tag.A variant exists only for a stack that cannot ship in
:latest. CUDA and ROCm are multi-GB, driver-bound and mutually exclusive. An accelerator whose runtime fits is built into the default image: Hailo-10H (amd64/arm64,Dockerfile.torch) and QNN (arm64, from the pinned public QAIRT Community zip — qnn-linux.md).There is no
:latest-hailoor:latest-qnn. The standalone:hailovariant andDockerfile.hailowere retired as a duplicate of the standard build.A variant chain builds a variant (
AGENTS.md§ Build Workflow), neverENABLE_*flipped on the default one: that pushed GPU bytes under the default tags.The per-arch images (
:latest-<arch>, the stage tags:latest-base-<arch>/:latest-package-<arch>) are the wrappers the manifest is assembled from: implementation detail, consumers resolve the manifest.nvidia’s cross stages (
gpu,media,android) push to a separate, private package,<repo>-stages. They carry TensorRT’s SDK, which may ship only as runtime files, and GHCR sets visibility per package. Everything else stays in<repo>(linux-accelerator-images.md§ Stage images).:latest-crossis retired, the old name of:latest. Nothing composes or pushes it, andverify_ci_image_refs.pyrejects it under.github/. The fleet calls this repo’s composite actions and reusable workflows at@develop, whoseversions.envnames:latest.mainstill carriesCI_IMAGE_LINUX_TAG=latest-cross, frozen at the last release that published it.The
:latest-crossregistry tags are gone. Republishing:latestleft:latest-crossalone on the old index, andghcr-delete-tags.shdeleted it and the three:latest-cross-<arch>wrappers. A lane still at@mainfails atdocker pull; move it to@develop.A new variant = a new manifest tag. The manifest lane refuses to shrink a published index (
AGENTS.md§ Push and Publish Rules), so a partial run cannot drop an architecture from one.Windows follows the variant rule for CUDA too.
Build-Buildkit.ps1 -Gpu(-Variant nvidia) builds underbk-*-nvidiastage tags and publishes:winamd64-nvidia, or:winarm64-nvidiafor the cross bundle;:winamd64is CPU + DirectML.Resolve-BkVariantrefuses a push to any other tag. Before that the nvidia build wrote the default tags, so a:winamd64published before the variant rule carries CUDA until that tag’s next publish.Windows is the documented exception, a platform fact, not a convention.
windows/arm64does not exist as a platform. Microsoft publishes no arm64servercore/nanoserverbase and Windows Server has no arm64 release (Windows-Containers#586).The arm64 lane cross-compiles inside the
windows/amd64container and emits an artifact bundle, so both Windows outputs arewindows/amd64images. Two entries with the same platform cannot share a manifest, and the bundle must never be published aswindows/arm64. So it keeps its own tag (:winarm64, documented as a bundle) and never joins:winamd64.
Images in This Repository#
linux/Dockerfile.torch: the final Linux wrapper image — Torch/Python layer + runtime scripts + entrypoint.linux/webserver/Dockerfile: minimal nginx static webserver (config atlinux/webserver/nginx.conf).windows/Dockerfile.base,windows/Dockerfile.nvidiaorwindows/Dockerfile.rocm(optional GPU layer),windows/Dockerfile.toolchain-builder,windows/Dockerfile.media-merge-builder(+ per-branch media builders),windows/Dockerfile.rocm-migraphxandwindows/Dockerfile.rocm-llama(rocm variant only),windows/Dockerfile.torch(the OrchestrANT app stage),windows/Dockerfile(driven bywindows/Build-Buildkit.ps1): Windows Server Core 2025 build image with MSVC Build Tools, LLVM/Clang, Vulkan SDK, Rust, Flutter, WiX.
Linux Image Chain#
The Linux images build as a chain of separate Dockerfiles, one per stage, so BuildKit caches the
expensive layers and rebuilds only what changed; the chain ends in the linux/Dockerfile.torch
wrapper. Dockerfile → FROM → produced tag: the table
above. Per-stage contents (moved from the README on
2026-10-19):
linux/
├── Dockerfile.base ubuntu:26.04 + CMake/Node/uv
├── Dockerfile.toolchain GCC + LLVM/Clang + Python (FROM base)
├── Dockerfile.sdk Vulkan SDK + Flutter (FROM toolchain)
├── Dockerfile.media ONNX Runtime (+GenAI) · LiteRT · OpenCV · FFmpeg · GStreamer · libcamera · TVM · IREE · Arm NN (FROM sdk)
├── Dockerfile.android Android SDK/NDK + native GCC swap (FROM media)
├── Dockerfile.package lean runtime assembly + validation (FROM base + android)
├── Dockerfile.torch final wrapper: entrypoint, labels, runtime scripts (FROM package)
├── Dockerfile.nvidia optional CUDA/cuDNN/TensorRT layer (FROM sdk)
├── Dockerfile.amd optional MIGraphX layer (FROM sdk)
└── scripts/ 01-core … 06-packaging — see § Repo map
Phase 1 Phase 2 Phase 3 Phase 4
─────── ─────── ─────── ───────
Base → Compiler → SDK → Media
(amd64) (amd64) (per-arch) (per-arch)
↓
Android
↓
Package + Torch (runtime lane)
Three lanes:
Cross (
linux/amd64host, cross-compiles every arch):base → compiler → sdk → media → android → runtime(CROSS_STAGE_ORDER). The runtime stage buildspackage/wrapperwith the android image as their artifact source, so android is not optional.Runtime (native or QEMU per arch):
base → package → wrapperWindows (native Windows Containers):
base → sdk → toolchain → media → torch → final; the variant stages in that order:AGENTS.md§ Build Workflow.
Per-stage mechanics: Linux build basics and
Linux cross builds, including Dockerfile.sdk’s reuse for amd64-hosted
cross SDK artifact builds via BUILD_MODE=cross and Dockerfile.package’s clean-base runtime
assembly in both native and cross flows.
What You Get#
Multi-arch builds via nerdctl + BuildKit.
Vulkan + toolchains ready for GPU passthrough.
The Torch/Python runtime in the final Linux image chain.
Static web content served by nginx.
Key Features#
Category |
Feature |
Status |
|---|---|---|
Cross-build |
Multi-arch cross toolchain (amd64, arm64, riscv64) |
✔️ |
Cross-build |
Digest-pinned stage handoff |
✔️ |
Cross-build |
Runtime packaging via QEMU/binfmt |
✔️ |
GPU acceleration |
NVIDIA CUDA 13.4, cuDNN, TensorRT |
✔️ |
GPU acceleration |
DirectML (Windows, vendor-agnostic — ONNX Runtime + GenAI DML EP) |
✔️ |
GPU acceleration |
AMD MIGraphX |
✔️ |
GPU acceleration |
Vulkan SDK 1.4.363.0 |
✔️ |
Media |
ONNX Runtime 1.31.1 |
✔️ |
Media |
GStreamer 1.29.2, OpenCV 5.0.0, LiteRT |
✔️ |
Media |
libcamera, FFmpeg |
✔️ |
Compiler |
GCC 16.2.0, LLVM/Clang 23.1.5 |
✔️ |
Language runtime |
Python 3.15.2, Node.js 26.13.0 |
✔️ |
Android |
SDK 15859902, NDK 30.0.16248370 |
✔️ |
Windows |
MSVC Build Tools, CUDA 13.4, GStreamer 1.29.2 |
✔️ |
Windows |
Vulkan SDK 1.4.363.0, ONNX Runtime 1.31.1 |
✔️ |
Windows-on-ARM |
Cross-built artifact bundle ( |
✔️ |
Legend: ✔️ completed · 🔶 in progress · ❌ not started
License information on bundled software: Third-Party Licenses.
Home-lab stacks, deliberately here#
Moved from the README on 2026-10-19.
Besides the build images and the shared CI surface, this repository carries the owner’s
personal operations stacks: Home Assistant under
linux/homeassistant/, Nextcloud AIO under
linux/nextcloud-aio/, and the Ansible playbooks,
which Semaphore UI runs, under linux/ansible/. They
are not build infrastructure, and not here by accident: one owner, one host, one place for the
compose files, the .env.example contracts and the runbooks that go with them. Anything in this
repository that claims it is build infrastructure only is wrong; the declared topic includes
these stacks. They go through the same gates as everything else (crlf-guard, shellcheck, secret scan),
and nothing else in the tree depends on them.