Files
awoooi/ops/runner/awoooi-non110-runner.user.service.example

28 lines
941 B
Plaintext

[Unit]
Description=AWOOOI non-110 Gitea runner, user Docker, capacity 1
Documentation=file:/opt/awoooi/ops/runner/check-awoooi-non110-runner-readiness.sh
After=default.target
ConditionPathExists=/home/ollama/awoooi-non110-runner/data/.runner
[Service]
Type=simple
WorkingDirectory=/home/ollama/awoooi-non110-runner
Environment=CONFIG_FILE=/data/config.yaml
ExecStartPre=-/usr/bin/docker rm -f awoooi-non110-runner
ExecStart=/usr/bin/docker run --rm --name awoooi-non110-runner -v /home/ollama/awoooi-non110-runner/data:/data -v /var/run/docker.sock:/var/run/docker.sock -e CONFIG_FILE=/data/config.yaml gitea/act_runner:latest
ExecStop=/usr/bin/docker stop -t 3700 awoooi-non110-runner
ExecStopPost=-/usr/bin/docker rm -f awoooi-non110-runner
Restart=always
RestartSec=20
KillSignal=SIGINT
TimeoutStartSec=120
TimeoutStopSec=3700
CPUQuota=200%
MemoryHigh=6G
MemoryMax=8G
TasksMax=512
NoNewPrivileges=true
[Install]
WantedBy=default.target