Mount docker and node binaries from arrsstack host into act_runner container
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
# act_runner — Gitea Actions self-hosted runner
|
# act_runner — Gitea Actions self-hosted runner
|
||||||
# Deploy on the machine running Gitea (same host).
|
# Runs on arrsstack (10.0.0.104). Gitea is on a separate machine (10.0.0.102).
|
||||||
# Registers at instance level — services all repos.
|
# Registers at instance level — services all repos.
|
||||||
#
|
#
|
||||||
# Uses host execution mode — jobs run directly on the host machine,
|
# host mode: jobs run inside the act_runner container.
|
||||||
# so Docker commands work natively without socket passthrough complexity.
|
# docker and node binaries are mounted from arrsstack's host filesystem
|
||||||
|
# so workflow steps can call docker build, docker push, etc.
|
||||||
#
|
#
|
||||||
# Setup:
|
# Setup:
|
||||||
# 1. Gitea → Site Administration → Actions → Runners → Create Runner → copy token
|
# 1. Gitea → Site Administration → Actions → Runners → Create Runner → copy token
|
||||||
@@ -19,10 +20,11 @@ services:
|
|||||||
- GITEA_INSTANCE_URL=https://git.thewichersfamily.com
|
- GITEA_INSTANCE_URL=https://git.thewichersfamily.com
|
||||||
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_TOKEN}
|
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_TOKEN}
|
||||||
- GITEA_RUNNER_NAME=homelab-pi5
|
- GITEA_RUNNER_NAME=homelab-pi5
|
||||||
# host mode: jobs run directly on this machine — Docker is available natively
|
|
||||||
- GITEA_RUNNER_LABELS=ubuntu-latest:host,ubuntu-22.04:host
|
- GITEA_RUNNER_LABELS=ubuntu-latest:host,ubuntu-22.04:host
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /usr/bin/docker:/usr/bin/docker:ro
|
||||||
|
- /usr/bin/node:/usr/bin/node:ro
|
||||||
- act_runner_data:/data
|
- act_runner_data:/data
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user