SIGINT, SIGTERM and SIGHUP all shut the node down in order (SIGTERM is what a
Kubernetes pod termination sends). A second signal, or 20 seconds (below the
30 s Kubernetes grants), stops the process at once, so a stuck shutdown cannot
hang.
The binary knows its version (allmende version, and the 'node running' log
line); the image is built with the commit as version and 'make image' pushes it
tagged with that commit, refusing a dirty tree.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
- scripts/e2e.sh (+ scripts/e2e/*.ts): the two-node end-to-end test, now
self-contained and cleaning up after itself; `make e2e`, part of `make check`
- Dockerfile/.dockerignore: static Go build in a non-root alpine image, data in
/data, defaults to region u1j; `make docker`
- flake.nix, nix/: package (buildGoModule), dev shell, NixOS module
services.allmende (hardened systemd unit that waits for `allmende-admin init`),
and a NixOS VM test run by `nix flake check`
- README: running a node with Docker and NixOS
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- cmd/node -> cmd/allmende; usage, messages and docs use the new name
- Makefile: build, init, run (REGION defaults to u1j, Bonn), vet, test,
web, web-test, check, clean
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>