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