The Frame’s runtime is already a container: the dev container (Fedora toolbox
in distrobox) is where everything builds and runs, and setup/dev-container.sh
is its recipe. It starts from the image’s pinned base and installs the same
package list (setup/packages.txt), but dnf still installs whatever Fedora has
that day: rebuild the container tomorrow and you can get a different wlroots or
glibc. This directory turns the container from a recipe into an
artifact: an OCI image whose every input is frozen.
Containerfile builds one image, frametop, from three frozen inputs:
fedora-toolbox:44 pinned to the exact
image, not the floating tag. This freezes the C world: glibc, wlroots 0.20,
the Qt/KDE stack.uv.lock — the committed lockfile pins every Python
dependency (pytest, ruff, the tracker’s NumPy/OpenCV stack) to exact
versions with aarch64 wheels, installed into /opt/frametop/venv. The venv
sits on Fedora’s own python3, which the base digest freezes, and sees the
system site-packages: PySide6 and Kirigami come from dnf for that
interpreter, so one python3 imports both, as in the dev container. The
checked uv executable is temporary: only the environment it creates stays
in the image.v2.15.6, in
scripts/openvr.sh. The build scripts fetch its headers and check their
sha256. The image has no SteamVR, so it links the SDK’s prebuilt
libopenvr_api.so (in /opt/frametop/lib, also checked); the binaries’
rpath names SteamVR’s folder first, so on the Frame they load SteamVR’s
own library, as the on-device builds do.The native binaries (ft-screens, ft-pointer, the ft_pointer driver,
ft-gaze, ft-gazepanel, ft-powerd) are built by the components’ own
build.sh scripts, run inside the image with FRAME_IN_BOX=1, so there is
one build recipe for the image and the Frame. They stay in their build/
folders under /src/frametop and are copied to /opt/frametop. Hand
tracking’s ft-camd and ft-hands (with ncnn, built from the source
hands/Makefile pins by sha256) stay in hands/build/, where their units and
ft-camd’s file capabilities point.
Component builds strip non-runtime symbols before the binaries are copied into
the image. The pointer driver and gaze panel also discard unused sections;
they keep -O2, the existing floating-point flags, and the host glibc checks.
The image has a shared Fedora/toolchain stage, a builder, and the final runtime.
The builder installs Fedora’s full PySide6 RPM, then pyside-runtime.py exports
the bindings imported by the four Frametop settings/recording applications.
Their native binaries and support libraries are copied unchanged to the same
Fedora paths, so both the system Python used by distrobox and the locked venv
can import them. A manifest records their source RPMs and file hashes; the
image build and offline tests check imports, hashes and shared-library resolution.
The available-module metadata describes the exported subset rather than the
full SDK. Keep BACKENDS in that script current when adding another Qt app.
The native Qt/Kirigami libraries, desktop style, Breeze icons, platform plugins
and image formats (including SVG and PDF) remain distro packages. Qt WebEngine,
3D and other bindings unused by Frametop stay in the builder. This is Frametop’s
private application runtime; the separate dev container still installs the
full PySide SDK. The runtime also keeps its compilers, headers and test tools,
so the native build recipes and ft dev test still work. Base/environment
layers stay separate from the source payload: the pinned toolbox base is
shared with the retained rollback release, and cached builds can also reuse
the added environment layers. Clean builds on independent runners need not
produce identical environment layers, even with identical RPM versions.
What deliberately stays outside the image for now: the host payload — the
SteamVR driver registration (vrpathreg), ft-camd’s file capabilities
(setcap), systemd units, the KWin script. Those need the SteamOS host, and
they are what install.sh does today. Packaging them into a checksummed
payload tarball is the next slice.
ft wrapperEverything that runs Frametop goes through the wrapper at the repo root, so the integration points live in one place:
ft dev build # build the image from this repo (docker or podman)
ft dev shell # interactive shell, repo at /src/frametop
ft ft-screens ... # run any program from /opt/frametop
ft dev test # the Python test suites inside the image
ft clean # remove frametop's leftovers only (see the store section)
FT_IMAGE overrides the image reference (the default is the locally built
frametop:local). The wrapper runs from a checkout only: releases
don’t install it. Containers
run through the wrapper are named frametop-<program>-<pid>. Runs get no
access to the host beyond the repo mount: how Frametop’s programs run on the
Frame is still open (see design.md).
A moving tag has no place on a headset: it cannot be reproduced in a bug
report and cannot be rolled back. A release is a file, its image is pinned by
ID in .frametop-release, and you roll back by running the previous
release’s install.sh. (The wrapper’s installed mode, which pinned a registry
digest in ~/.config/frametop/image and refused :latest, was dropped: no
release used it.)
On SteamOS, rootless podman has one container/image store, and Frametop
shares it with Valve’s Android layer: Lepton names its containers
lepton-<context>, and they live in the same store as ours. Two rules
follow, and both are enforced or documented rather than hoped for:
frametop-<program> names; ft clean deletes only containers matching
frametop-* and only images whose reference names frametop. It never runs
store-wide commands.podman rm -a, podman rmi -a, and podman system prune would delete
Valve’s containers and images too. Use ft clean for Frametop’s share of
the store and leave the rest of it to Steam.Downloading a release (get.sh --release) goes over the Frame’s normal
Wi-Fi client interface (wlan0), not the 6 GHz streaming link to the PC
dongle. The image is roughly 1–1.5 GB compressed — downloads ride the home
network, so a weak Wi-Fi link is the bottleneck, not the streaming antenna.
The image replaces the build toolchain, not adds to it: today’s distrobox dev
container with its dnf history is the heavyweight; the pulled image carries
only the runtime plus the frozen build inputs (~1–1.5 GB compressed, a few GB
unpacked, in ~/.local/share/containers). Once install.sh switches to the
image, the dev container is only needed for development and can be removed
from user machines. ft clean reclaims space from superseded frametop
images.
The programs need much more of the host than a plain podman run gives them;
design.md lists what, the device
findings so far, and the options. What’s built so far is option A, a
distrobox made from the image, the same kind of container as the dev
container. The headset trial (step 2 below) decides.
Every program an installed Frametop runs in its container goes through
scripts/in-box: the pointer and power services, the gaze service’s ft-gaze,
ft-eyes and calibration panel, the desktop’s ft-screens, the remote desktop,
and the settings apps. A source install runs them in dev; a release names
its own container in .frametop-release.
A release is one file, Frametop.zip (about 1.1 GB), attached to a GitHub
release: the image as an OCI archive (frametop-image.tar, from podman save),
frametop-release.json (version, commit, the archive’s sha256, the image’s
ID, and the SteamOS table), the installer install-release.sh, and the
install window from framedrop/installer. No container registry. It installs
three ways, all through the same installer:
framedrop/README.md).Frametop/frametop-install.sh opens the same
window.get.sh --release downloads the zip from GitHub (the newest stable release,
or --experimental, --version V, --zip FILE) and runs
install-release.sh in the terminal.install-release.sh:
BUILD_ID in /etc/os-release) against the
SteamOS table, steamos.json: the newest one, from main on GitHub, when it
can fetch it, else the copy in the release. Tested: on. Not tested yet: a
warning, and a question (--yes goes on). Broken for this release: it stops
and names the release that fixes it (--any-steamos goes on). A broken build
counts from its from release up to its fixed_in, so a release that needs
a newer SteamOS refuses an older one, and the other way round.get.sh downloads again), loads it into podman, checks the image’s ID, and
tags it localhost/frametop:VERSION./src/frametop (the repo at that commit, built) to
~/.local/share/frametop/releases/VERSION with a .frametop-release
(version, commit, channel, image, ID, and the container’s name, frametop-
and the ID’s start), and runs that copy’s install.sh.install.sh builds nothing: it installs the distrobox the
image brings, makes the release’s container from the image
(release-box.sh, which checks the ID again), and installs the services
from the release’s folder. Each release has its own container, so
installing one doesn’t stop the one running.install.sh goes back to
it and makes it current again. Older ones are removed, with
their containers and images. uninstall.sh removes them all.docs/charts/README.md). install.sh says so when it stops early.scripts/fast-install)
isn’t installed over: run scripts/fast-install undo in the checkout first.Every update is a full 1.1 GB download, since the zip holds the whole image (user decision, 2026-10-07: one file, no registry).
.github/workflows/check.yml runs the test gate when started by hand (manual only, no push or
pull request trigger), on
GitHub’s free arm64 runner (ubuntu-24.04-arm): it builds the image (ft dev build) and runs
ft dev test in it, read-only, with no secrets. It builds or publishes nothing.
.github/workflows/release.yml runs on Depot’s arm64 runners
(depot-ubuntu-24.04-arm-4), only for a v* tag or by hand: no pushes or pull
requests, since the runners are paid and a fork’s pull request would run on
them. It builds the image with podman (ft dev build, as on the Frame), runs
the test gate inside it (ft dev test: Python, C, and shell), checks what a
release installs from the image, and builds Frametop.zip with
framedrop/build.sh --image. A tag makes a draft GitHub release with the zip,
its FrameDrop manifest, frametop-release.json, and SHA256SUMS, as a
prerelease when the tag has a - (v0.3.0-exp.1); someone publishes it. A
manual run keeps the zip as an artifact for a week. The repo needs Depot’s
GitHub app for the runner label to work.
The repo moved from DeeJanuz/frametop to the Frametop organization on
2026-10-09, because Depot’s runners need an organization. GitHub redirects the
old repo URLs; the old Pages one-liner (deejanuz.github.io/frametop/get.sh)
is kept by DeeJanuz/deejanuz.github.io, whose frametop/get.sh and
frametop/uninstall.sh hand over to frametop.github.io/frametop. A release:
merge into experimental (and main for a stable one, by merge commit), push,
tag, and publish the draft.
The image only pays off when it makes installing Frametop easier, so none of this ships until the whole path works:
/src/frametop), so there’s no separate tarball.get.sh --release install a release
(Releases above). The source install stays for development.