From a6b25ee84d7321c922dd2814f44e7f773e096173 Mon Sep 17 00:00:00 2001 From: gortium Date: Tue, 7 Jul 2026 21:56:33 -0400 Subject: [PATCH] fix: replace broken ENTRYPOINT override with s6-overlay compatible CMD The custom ENTRYPOINT chained bash -> tini -g -> deprecated entrypoint.sh, bypassing s6-overlay's /init entirely. This left S6_CMD_ARG0 unset and the orphan -g flag crashed rc.init with '-g: not found' -> SIGTERM -> restart loop. Fix: - Remove the ENTRYPOINT override so the image default is used: ENTRYPOINT ['/init', '/opt/hermes/docker/main-wrapper.sh'] - Change CMD to point at /opt/data/start-hermes.sh, a new launcher that starts per-profile gateways in background then the default gateway in foreground (via s6-overlay's main-program model). The old /usr/local/bin/run-multi-gateways.sh is no longer called. --- ai/compose.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ai/compose.yml b/ai/compose.yml index cd78971..1c87fb2 100755 --- a/ai/compose.yml +++ b/ai/compose.yml @@ -6,19 +6,19 @@ services: ssh: - default container_name: hermes - entrypoint: ["/bin/bash", "-c", - "bash /usr/local/bin/run-multi-gateways.sh && exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"", - "hermes-entrypoint"] restart: always - # Gateway run enables the internal API server on port 8642 - command: gateway run + # Use the image default ENTRYPOINT ["/init", "/opt/hermes/docker/main-wrapper.sh"] + # for proper s6-overlay supervision. The CMD runs our multi-profile launcher + # which spawns per-profile gateways in background, then the default gateway + # in foreground (keeps the container alive). + command: ["/opt/data/start-hermes.sh"] environment: - HERMES_UID=10000 - HERMES_GID=10000 - OLLAMA_HOST=http://ollama:11434 - HERMES_DASHBOARD=1 # Multi-profile: comma-separated list of profiles to run as gateways. - # The entrypoint reads this and starts one gateway per profile. + # start-hermes.sh reads this and starts one gateway per profile. # Add profiles here when they exist on disk (e.g. default,researcher,writer) - HERMES_PROFILES=ashley,claire,finn,matt,paul - API_SERVER_ENABLED=true