first commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
OPENAI_BASE_URL=http://ollama:11434/v1
|
||||
OPENAI_API_KEY=ollama
|
||||
LLM_MODEL=qwen3.5:0.8b
|
||||
TERMINAL_LOCAL_PERSISTENT=true
|
||||
TZ=Asia/Kuala_Lumpur
|
||||
@@ -0,0 +1,25 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
VIRTUAL_ENV=/opt/venv \
|
||||
PATH=/opt/venv/bin:/root/.local/bin:$PATH
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
git curl ca-certificates build-essential ffmpeg ripgrep \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
|
||||
&& ln -sf /root/.local/bin/uv /usr/local/bin/uv
|
||||
|
||||
WORKDIR /opt
|
||||
RUN git clone --recurse-submodules https://github.com/NousResearch/hermes-agent.git
|
||||
|
||||
WORKDIR /opt/hermes-agent
|
||||
RUN uv venv /opt/venv --python 3.11 \
|
||||
&& uv pip install --python /opt/venv/bin/python -e ".[all]" \
|
||||
&& mkdir -p /root/.hermes/{cron,sessions,logs,memories,skills,pairing,hooks,image_cache,audio_cache,whatsapp/session} \
|
||||
&& cp cli-config.yaml.example /root/.hermes/config.yaml \
|
||||
&& touch /root/.hermes/.env
|
||||
|
||||
WORKDIR /workspace
|
||||
CMD ["sleep", "infinity"]
|
||||
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
hermes:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: hermes-agent
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
working_dir: /workspace
|
||||
env_file:
|
||||
- ./.env
|
||||
volumes:
|
||||
- hermes_data:/root/.hermes
|
||||
- ./workspace:/workspace
|
||||
networks:
|
||||
- caddy_caddy_net
|
||||
stdin_open: true
|
||||
tty: true
|
||||
command: ["sleep", "infinity"]
|
||||
|
||||
volumes:
|
||||
hermes_data:
|
||||
|
||||
networks:
|
||||
caddy_caddy_net:
|
||||
external: true
|
||||
@@ -0,0 +1,24 @@
|
||||
mkdir -p ~/hermes-prod/workspace
|
||||
cd ~/hermes-prod
|
||||
|
||||
sudo docker compose -f docker-compose.yml up -d --build
|
||||
|
||||
docker exec -it hermes-agent hermes doctor
|
||||
docker exec -it hermes-agent hermes status
|
||||
docker exec -it hermes-agent hermes chat -q "Hello, confirm you are connected to Ollama"
|
||||
|
||||
docker exec -it hermes-agent bash -lc 'curl -s http://ollama:11434/api/tags'
|
||||
|
||||
## install
|
||||
docker exec -it hermes-agent bash
|
||||
cd /opt/hermes-agent
|
||||
git submodule update --init --recursive
|
||||
uv pip install -e "./tinker-atropos"
|
||||
hermes doctor
|
||||
|
||||
docker exec -it hermes-agent hermes chat \
|
||||
--provider custom \
|
||||
--model qwen3.5:0.8b \
|
||||
-q "Reply with exactly: connected"
|
||||
|
||||
sudo docker exec -it hermes-agent hermes chat --provider auto -m qwen3.5:0.8b -q "Reply with exactly: connected"
|
||||
Reference in New Issue
Block a user