about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-12 15:35:20 +0000
committerPjotr <wrk@bosa.lan>2026-11-12 15:35:20 +0000
commitdf684f4481dc4bc9c6331b11ede16b3d7d7a2ed8 (patch)
tree888a5a81783a17b5232505ca17cc7a792e39009e /test
parent4a494fe2e30a948a53214a3e1ebc1a1f06bbd3a9 (diff)
downloadrun-guix-container-df684f4481dc4bc9c6331b11ede16b3d7d7a2ed8.tar.gz
README: a worked example for service containers, and a licence
The README explained the protocol, the fingerprint, the privileges and the
privilege boundary well; what it did not have was the sequence for the case
people actually hit -- a container whose services the host then talks to.

New section "Worked example: a service container other programs talk to":
--network shares the host's network namespace so container services are at
127.0.0.1:PORT on the host (and why that is not the daemon's --port); build
the launcher with `guix system container -d` + `guix build` before letting the
daemon start it, because `guix system container` builds *and* runs in the
foreground; and the trap that bit during a real test -- a `--share` whose host
path does not exist is dropped silently, so create it first. Plus the two
timings worth having: a container is at its services ~2 s after START when the
store paths are built, ~45 s on first boot while activation generates keys and
lays out spool directories, so a client that gives up after a few seconds is
measuring the wrong case. Boot output is where to look: LOG/--log, or
/var/log/guix-containers/<pid>.log subject to the unit's LogsDirectory.

LICENSE is now BSD 3-Clause (Copyright (c) 2026 Pjotr Prins), the same text as
ai-memory's, and the README ends with a pointer to it.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions