From c1cd9d31e9fcd753f6d0c0f07b114f33eb212ebe Mon Sep 17 00:00:00 2001 From: Hermes Date: Fri, 22 May 2026 21:37:01 -0400 Subject: [PATCH] fix: move run-multi-gateways.sh into ai/hermes/ and bake into image --- ai/compose.yml | 2 +- ai/hermes/Dockerfile | 4 ++++ run-multi-gateways.sh => ai/hermes/run-multi-gateways.sh | 0 3 files changed, 5 insertions(+), 1 deletion(-) rename run-multi-gateways.sh => ai/hermes/run-multi-gateways.sh (100%) diff --git a/ai/compose.yml b/ai/compose.yml index bc0cd4f..89dceca 100755 --- a/ai/compose.yml +++ b/ai/compose.yml @@ -32,7 +32,7 @@ services: - default container_name: hermes entrypoint: ["/bin/bash", "-c", - "bash /opt/data/hermes-tools/install.sh && bash /opt/data/hermes-tools/run-multi-gateways.sh && exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"", + "bash /opt/data/hermes-tools/install.sh && 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 diff --git a/ai/hermes/Dockerfile b/ai/hermes/Dockerfile index 253b9b7..dd044f9 100644 --- a/ai/hermes/Dockerfile +++ b/ai/hermes/Dockerfile @@ -76,6 +76,10 @@ os.remove(tgz) print('himalaya v1.2.0 installed') PYEOF +# ---------- Install multi-gateway launcher ---------- +# Launches one gateway process per profile (HERMES_PROFILES env var) +COPY --chmod=0755 run-multi-gateways.sh /usr/local/bin/run-multi-gateways.sh + # ---------- Runtime ---------- USER hermes ENV HERMES_HOME=/opt/data diff --git a/run-multi-gateways.sh b/ai/hermes/run-multi-gateways.sh similarity index 100% rename from run-multi-gateways.sh rename to ai/hermes/run-multi-gateways.sh