Simplify: use native s6 multi-profile supervision, drop custom scripts #58
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/hermes-entrypoint-simple"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Simplify the Hermes Docker setup to use the image's native s6 multi-profile supervision instead of custom entrypoint scripts.
Changes
command: gateway run(vanilla, same as official docs). RemoveHERMES_PROFILESenv var — the s6 reconciler readsgateway_state.jsonfrom each profile directory and auto-starts those that were running.start-hermes.shCOPY line added in the previous fix.patch_tts_tool.py(orphaned),run-multi-gateways.sh(replaced by s6),start-hermes.sh(overengineered workaround).Why
The official image's s6-overlay already handles per-profile gateways natively:
hermes profile create <name>registers an s6 service slot at/run/service/gateway-<name>/hermes -p <name> gateway start/stop/restartdispatches tos6-svc02-reconcile-profiles) auto-starts profiles whosegateway_state.jsonhasdesired_state: runningThe five profiles (ashley, claire, finn, matt, paul) already exist on disk with
desired_state: running— they pick up automatically on container boot.Before vs After
bash → tini -g → entrypoint.sh → exits6-overlay → start-hermes.shs6-overlay → gateway run