add playwright container to hermes
This commit is contained in:
parent
521b6b18ad
commit
76bb2191e0
10
ansible/roles/services/files/hermes/hermes-agent.container
Normal file
10
ansible/roles/services/files/hermes/hermes-agent.container
Normal 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
|
||||||
@ -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
|
|
||||||
16
ansible/roles/services/files/hermes/hermes.pod
Normal file
16
ansible/roles/services/files/hermes/hermes.pod
Normal 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
|
||||||
12
ansible/roles/services/files/hermes/playwright.container
Normal file
12
ansible/roles/services/files/hermes/playwright.container
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user