feat: install custom Hermes tools at startup, remove deprecated fix-permissions.sh #23
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/hermes-custom-tools-startup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Custom Hermes tools (gitea, ssh, ollama, fork, qet, moa, connecteam) are stored in the persistent volume at /opt/data/hermes-tools/ but never loaded into /opt/hermes/tools/ on container start.
The fix-permissions.sh startup script is broken when run as non-root (chown silently fails) and its functionality is now handled upstream.
Solution
RUN chown -R hermes:hermes /opt/hermes/tools /opt/hermes/toolsets.pyso the runtime user can write custom tools from the persistent volume at startup. No root at runtime.install.sh(copies custom tools from volume) before chaining to the upstream entrypoint.sh.Startup chain
No privilege escalation. Container runs entirely as the hermes user.
Why this works
Verification
After deploy:
docker compose build hermes && docker compose up -d hermesThen check:
docker exec hermes ls /opt/hermes/tools/vm_tools.py