add playwright container to hermes

This commit is contained in:
Tobias Petrich 2026-05-05 14:20:44 +02:00
parent 521b6b18ad
commit 76bb2191e0
No known key found for this signature in database
GPG Key ID: 220BE847F99B1B62
4 changed files with 38 additions and 19 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=LXC-style Persistent Toolbox
After=network-online.target
[Container]
Rootfs=%h/containers/toolbox-rootfs
Exec=hermes gateway run
ContainerName=hermes-agent
Pod=hermes.pod

View File

@ -1,19 +0,0 @@
[Unit]
Description=LXC-style Persistent Toolbox
After=network-online.target
[Container]
Rootfs=%h/containers/toolbox-rootfs
Exec=hermes gateway run
ContainerName=hermes
# Essential for permissions and persistence
#RemapUsers=keep-id
[Service]
# Ensures systemd doesn't kill the process prematurely
Restart=always
RestartSec=60
[Install]
WantedBy=multi-user.target default.target

View File

@ -0,0 +1,16 @@
[Unit]
Description=Hermes Agent deployment
Wants=network-online.target
After=network.target network-online.target
[Pod]
PodName=hermes
[Service]
# Restart service when sleep finishes
Restart=on-failure
RestartSec=60
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target

View File

@ -0,0 +1,12 @@
[Unit]
Description=Playwright MCP browser
After=network-online.target
[Container]
Image=docker.io/mcp/playwright:latest
ContainerName=playwright
AutoUpdate=registry
Entrypoint=node
Exec=/app/cli.js --headless --browser chromium --no-sandbox --port 8931 --host 0.0.0.0
Pod=hermes.pod