Skip to content

The agent that grows with you

fix(docker): stop sourcing the relocatable venv's activate from sh

ethernete548e7758c3c
diff --git a/docker/main-wrapper.sh b/docker/main-wrapper.sh
index 36934990e7e..1a99c15f4e1 100755
--- a/docker/main-wrapper.sh
+++ b/docker/main-wrapper.sh
@@ -70,8 +70,6 @@ export HOME=/opt/data
_hermes_orig_cwd="${HERMES_ORIG_CWD:-$PWD}"
cd /opt/data
-# shellcheck disable=SC1091
-. /opt/hermes/.venv/bin/activate
# Restore the original working directory before handing off to
# the user's command so `hermes chat` starts in the Docker -w
diff --git a/docker/s6-rc.d/dashboard/run b/docker/s6-rc.d/dashboard/run
index 2eb0cf9cb18..3317546561e 100755
--- a/docker/s6-rc.d/dashboard/run
+++ b/docker/s6-rc.d/dashboard/run
@@ -24,8 +24,6 @@ esac
export HOME=/opt/data
cd /opt/data
-# shellcheck disable=SC1091
-. /opt/hermes/.venv/bin/activate
dash_host="${HERMES_DASHBOARD_HOST:-0.0.0.0}"
dash_port="${HERMES_DASHBOARD_PORT:-9119}"
diff --git a/hermes_cli/service_manager.py b/hermes_cli/service_manager.py
index 0e2c1d70e8a..3e8d50762aa 100644
--- a/hermes_cli/service_manager.py
+++ b/hermes_cli/service_manager.py
@@ -446,7 +446,6 @@ class S6ServiceManager:
"set -e",
"export HOME=/opt/data",
"cd /opt/data",
- ". /opt/hermes/.venv/bin/activate",
]
for k, v in sorted(extra_env.items()):
lines.append(f"export {k}={shlex.quote(v)}")