Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hermes-agent.dnp.dappnode.eth",
"version": "0.1.0",
"upstreamVersion": "v2026.4.8",
"version": "0.1.1",
"upstreamVersion": "v2026.4.16",
"upstreamRepo": "NousResearch/hermes-agent",
"upstreamArg": "UPSTREAM_VERSION",
"shortDescription": "Self-improving AI agent with multi-LLM support and messaging gateway",
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ services:
context: .
dockerfile: Dockerfile
args:
UPSTREAM_VERSION: v2026.4.8
image: hermes-agent.dnp.dappnode.eth:0.1.0
UPSTREAM_VERSION: v2026.4.16
image: hermes-agent.dnp.dappnode.eth:0.1.1
container_name: DAppNodePackage-hermes-agent.dnp.dappnode.eth
restart: unless-stopped
environment:
Expand Down
18 changes: 17 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,24 @@ if [ -f "${INSTALL_DIR}/.venv/bin/activate" ]; then
source "${INSTALL_DIR}/.venv/bin/activate"
fi

# Make `hermes` discoverable inside the ttyd web terminal.
# ttyd spawns `bash -l`, which resets PATH from /etc/profile and loses the
# venv we activated above. Drop a profile.d snippet so login shells re-add it.
if [ -d /etc/profile.d ] && [ ! -f /etc/profile.d/hermes-venv.sh ]; then
cat > /etc/profile.d/hermes-venv.sh <<EOF
# Added by DAppNode Hermes Agent package: expose the upstream venv to login shells
if [ -d "${INSTALL_DIR}/.venv/bin" ]; then
export PATH="${INSTALL_DIR}/.venv/bin:\$PATH"
export VIRTUAL_ENV="${INSTALL_DIR}/.venv"
fi
export HERMES_HOME="${HERMES_HOME}"
EOF
chmod 0644 /etc/profile.d/hermes-venv.sh
fi

# --- Bootstrap config files (mirrors upstream entrypoint) ---
mkdir -p "$HERMES_HOME"/{cron,sessions,logs,hooks,memories,skills}
# Layout matches upstream docker/entrypoint.sh in v2026.4.16 (Hermes v0.10.0).
mkdir -p "$HERMES_HOME"/{cron,sessions,logs,hooks,memories,skills,skins,plans,workspace,home}

if [ ! -f "$HERMES_HOME/.env" ]; then
cp "$INSTALL_DIR/.env.example" "$HERMES_HOME/.env"
Expand Down
Loading