Files
compose/ai/hermes/entrypoint.sh
Hermes 7adc11c689
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
feat(hermes): replace Dockerfile with python:3.11-slim based image with Chromium
2026-05-20 14:24:09 -04:00

21 lines
605 B
Bash

#!/bin/bash
set -e
# Hermes Agent entrypoint script
# Installs custom tools and runtime dependencies,
# then delegates to the passed command (usually "gateway run").
# Install custom tools from persistent volume if available
if [ -f /opt/data/hermes-tools/install.sh ]; then
bash /opt/data/hermes-tools/install.sh
fi
# Install additional runtime deps (idempotent)
if command -v uv &>/dev/null; then
uv pip install --system --no-cache-dir --quiet \
openai mautrix[encryption] 2>/dev/null || true
fi
# Execute the passed command with tini for proper signal handling
exec tini -g -- "$@"