Archipelago infrastructure
Find a file
2026-11-06 05:58:58 +03:00
containers Add verified storage tools and experimental daily Core driver 2026-11-04 21:39:11 +00:00
deploy Stream completed artifact trees before integrity validation 2026-11-06 05:58:58 +03:00
pipeline Stream completed artifact trees before integrity validation 2026-11-06 05:58:58 +03:00
portal Recover interrupted worker jobs before starting the next cycle 2026-11-06 03:02:26 +03:00
tests Recover interrupted worker jobs before starting the next cycle 2026-11-06 03:02:26 +03:00
.env.example Initialize D-071 source registry and terra deployment 2026-11-04 20:21:16 +00:00
.gitignore Add verified storage tools and experimental daily Core driver 2026-11-04 21:39:11 +00:00
compose.mirror.yaml Initialize D-071 source registry and terra deployment 2026-11-04 20:21:16 +00:00
compose.storage.yaml Add verified storage tools and experimental daily Core driver 2026-11-04 21:39:11 +00:00
compose.yaml Initialize D-071 source registry and terra deployment 2026-11-04 20:21:16 +00:00
README.md Record native desktop delivery and release integration work in progress 2026-11-06 00:09:39 +03:00
STATUS.md Record native desktop delivery and release integration work in progress 2026-11-06 00:09:39 +03:00

Archipelago infrastructure

Accepted deployment: terra, https://mirror.nw-sys.ru/archipelago/ (D-071). Source registries: Archipelago/core, Archipelago/purposes; contracts: Archipelago/rfc.

Temporary hardware-testing topology/retention and publication procedure: deploy/HARDWARE-TEST.md. Builds/tests now run on yabloko; repositories and published artifacts remain on terra. The hardware-test publisher is separate from testing/stable release gates.

Standalone web deployment

  1. Copy .env.example to .env, set an immutable Caddy image and PUBLIC_ROOT.
  2. Create a generation under PUBLIC_ROOT/.generations/initial with iso, ostree/layers, ostree/images, v1 directories and a relative current symlink. Initialize both native archive repositories and history.json as {"core": [], "gnome": []}; alternatively let the hardware-test publisher create the first complete generation before starting the web service.
  3. Initialize PUBLIC_ROOT/current/releases.json from deploy/releases.empty.json only on a fresh deployment. Never overwrite a populated catalog during code deployment.
  4. docker compose up -d web serves the complete /archipelago/ prefix on localhost port 8098. Put your HTTPS reverse proxy in front; no mirror dependency is required.

Existing terra mirror

Run docker compose -f compose.yaml -f compose.mirror.yaml up -d web, then as root run python3 deploy/integrate-mirror.py. The helper backs up and validates Caddy, inserts an explicit /archipelago/ route before the existing fallback, reloads and restores the original configuration on reload failure. Existing /archlinux and rsync routes are preserved. The web container mounts public artifacts read-only and never receives a Docker socket, signing key, private staging or build workspace.

The homepage is public; only explicitly accepted hardware-test candidates or eligible testing/stable releases may enter public storage. An empty catalog represents the absence of publications. Source-only Material You-inspired styling and original artwork require no remote fonts, scripts or upstream logo redistribution.

External ingress

For the known Moscow Docker Caddy ingress sites, run as root: python3 deploy/integrate-ingress.py /path/to/conf/Caddyfile. The helper inserts /archipelago and /archipelago/* routes into the single mirror.nw-sys.ru block, forwarding to terra at 100.64.0.1:80. It validates inside caddy-caddy-1, saves a restricted backup and restores on reload failure. Host paths: south /app/caddy/conf/Caddyfile, north /home/no1_tx/apps/caddy/conf/Caddyfile, west /opt/caddy/conf/Caddyfile.

Native OSTree storage

compose.storage.yaml runs the CLI storage administrator without network, capabilities, signing keys or a Docker socket, with a read-only container root. Build containers/storage.Dockerfile and pin its resulting image ID as STORAGE_IMAGE; its Debian OSTree is administrative tooling, not the target OS OSTree version. The image retains /usr/share/archipelago/storage-packages.tsv. Set ARCHIPELAGO_BINARY and REGISTRY_ROOT to one public or private storage root:

docker compose -f compose.storage.yaml run --rm storage registry init /registry/layers
docker compose -f compose.storage.yaml run --rm storage registry init /registry/images
docker compose -f compose.storage.yaml run --rm storage registry verify /registry/layers

These commands initialize/verify native archive repositories and create no releases. Private staging is never mounted into the web container. tests/storage.sh exercises native HTTP pull, locking, incompatible paths/modes and corrupted-object rejection in disposable storage. tests/layer-conformance.py compares the Rust parser/schema checker to approved fixtures and checks source registry YAMLs.

Experimental daily Core

pipeline/daily-core.py CONFIG.json drives a real CLI build and QEMU acceptance. It records exact source-file hashes, Core Git revision, tools image ID, binary/ISO digests and resulting image commit. Failures and overlapping runs are recorded; only successful VM validation advances the private latest-candidate.json evidence pointer. This is not a signed release/channel document or an update client.

The first backend is the existing monolithic archipelago build iso, executed in host-managed Arch nspawn. Rust compilation uses a digest-pinned Docker container. It does not claim the future nested-Docker build-worker isolation profile or independently built Layer v1 artifacts. The selected Core YAML must match the reviewed profile digest; unsupported YAML changes fail rather than being ignored. The daily builder requires root on a dedicated build host, nspawn, Docker, QEMU/KVM, OVMF and Python pexpect. Source tree includes all CLI path dependencies and rfc.

Deployment configuration keys: private_root, source_root, build_cache, cargo_cache, package_cache, bootstrap, tools_image, supported_core_sha256, ovmf_code, ovmf_vars. Terra's binding is /opt/archipelago/daily-core.json. deploy/daily-core.cron schedules 03:00 in the host timezone; install only after a manual successful run. Changes to code are deployed into source_root explicitly; Core main is fetched and pinned per run. A new Git commit alone is not proof of a changed image. Build workspaces are retained for diagnosis; no automatic GC yet.

Snapshots and bulk mirror copying are disabled by D-073. Future capture policy is in deploy/snapshot-policy.json, with the approved three-monthly-snapshot cap. The prepared capture tool refuses execution while disabled; it does not run in cron. An enabled capture would still be transport evidence, not signature validation or a sealed Archipelago Snapshot. Retiring snapshots requires reference-aware GC; until implemented the tool stops at the cap instead of destroying retained inputs.

Remaining build and update pipeline

The existing CLI ISO experiment is not yet a YAML-driven, independently built layer pipeline. Required sequence: strict Layer parser and locks → independent layer build → artifact upload → image composition from registry → ISO from exact image → validation/reproducibility → signed publication. Add builder/validator/publisher services only with a verified worker isolation profile; do not deploy a cron job that advertises missing CLI commands as successful work.

Registry-backed CLI update and PackageKit/GNOME Software/KDE Discover integration follow the staged transaction contract in RFC-0009 and D-071. Public signing keys, release wire schemas and complete update/reapplication evidence remain required.