Commit Graph
4 Commits
Author SHA1 Message Date
Catoandcatomean 0bf127e967 Sealed builds: opencode in the agent image; read/test/on/off workflow per runner unit (#1371)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-10-21 17:41:46 +02:00
Catoandcatomean ab028d6188 Install Cursor, Grok and Antigravity on the cloud builder (#1368)
* Install Cursor, Grok and Antigravity on the cloud builder so quota failover has somewhere to go

* No grep -q in a pipe

---------

Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-10-21 17:11:54 +02:00
CatoandClaude 7f31a5b262 fix(cloud): the sealed-builds installer says why the image did not build (#1350)
Both deploys on 2026-10-20 read "⚠ loki-agent image did not build" and nothing
more: the build's output went to /dev/null, and the box cannot be reached from
a sandbox to look. Now the build writes /var/log/loki-sealed-builds.log and the
deploy prints its last fifteen lines on failure.

Two likely causes removed while at it: the base image is fully qualified
(docker.io/library/ubuntu:24.04 — an unqualified short name makes podman ask
which registry, and a build with no terminal cannot answer), and the root
build runs on a storage.conf of its own (graphroot = the shared store) instead
of the global one that lists the same store as an additional, read-only
image store for every tenant.


Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-20 14:05:39 +02:00
CatoandClaude 01d0c4fc65 feat(cloud): sealed builds — rootless podman and gVisor as readings, switched on per tenant by the operator (#1348)
Track 4.2 of docs/master-plan-2026-10.md, built; switched on by a reading.

- SandboxExecutor gains a podman mode (buildPodmanRunArgs): rootless as the
  tenant (--userns=keep-id), the tenant's home bound at the same path so
  sign-ins, trust and transcripts stay where the runner looks, the project's
  real path as workdir, network on, capabilities dropped,
  --cgroups=disabled so the deploy's drain still counts the processes, and
  gVisor's runsc as the OCI runtime when the box has it.
- scripts/hetzner/agent-image/Containerfile: the image (shell, git, gh,
  node, Claude Code, Codex). install-sealed-builds.sh, run by every deploy:
  rootless podman, runsc best-effort, the image built into a shared
  read-only store, and a reading in /etc/loki/sealed-builds.
- Nothing switches on by itself: new-tenant.sh writes the unit drop-in
  (LOKI_EXECUTOR=sandbox, LOKI_SANDBOX_RUNTIME=podman, runsc when read) only
  when the reading says ready AND /etc/loki/sealed-builds.on exists. The
  roadmap milestone stays unticked until a tenant builds in a container.
- Tests: sandbox-executor pins the sealed shape; private-builders pins the
  two-reading switch and that no tenant ever joins the docker group.


Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-20 13:20:21 +02:00