about summary refs log tree commit diff
path: root/test/run.sh
AgeCommit message (Collapse)Author
6 daysdaemon: make the log directory configurable (--log-dir / GUIX_CONTAINER_LOG_DIR) HEAD masterPjotr
/var/log/guix-containers was a #define, and the daemon read no environment variables at all, so a host whose /var/log is read-only -- or anyone running the daemon outside a system-wide install -- had no way to keep container boot output except to edit and rebuild the C. It is now a runtime value: the flag wins, then $GUIX_CONTAINER_LOG_DIR, then the old default, and all three uses (the mkdir, the .writable probe, the per-container <name>.log path) go through it. The chosen directory is named at startup ("container logs: DIR") before the privilege check, for two reasons: it is the first thing an operator needs when a container does not come up, and it makes the switch observable without root, which is how test/run.sh now checks it -- --log-dir and the env var each have to appear in that line, and an unknown option still has to print the usage. README: documents the flag and the variable, says which wins, and points ProtectSystem=strict users at --log-dir as the alternative to LogsDirectory=. Also generalises one line that said "uid=1000(wrk)" -- true of the author's box, misleading on anyone else's -- to "your own uid, e.g. uid=1000".
2026-09-26run-guix-container: new toolPjotr Prins
A C daemon (run as root) that starts Guix system containers on request over a line-based network protocol, plus an unprivileged Ruby client. * START/KILL/LOG/FINGERPRINT protocol; one request per connection * strict validation of store items before exec (HASH-run-container name, guile shebang, container markers, immutable store file) * --fingerprint WORD identifies the daemon instance (random hash when unset); verified by clients and passed to containers in GUIX_CONTAINER_FINGERPRINT * on SIGINT/SIGTERM: SIGTERM all started containers, 10s timeout, then SIGKILL * container boot output appended to /var/log/guix-containers/ * unit tests for launcher and fingerprint logic