-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (24 loc) · 896 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
27 lines (24 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
services:
runner:
build:
context: .
platform: linux/amd64
env_file: .env
restart: unless-stopped
# SIGTERM has to reach entrypoint.sh's trap AND let an in-flight job finish
# before the runner deregisters. Docker's default 10s grace period would
# SIGKILL mid-job and leave a stale "offline" runner in GitHub.
stop_grace_period: 2m
# Named volumes, not bind mounts: Gradle's cache is hundreds of thousands of
# small files, and on macOS a bind mount routes every one of those through
# virtiofs. Named volumes stay inside the VM and are markedly faster.
# Inspect with `docker compose exec runner du -sh /cache/gradle`, reset with
# `docker volume rm github-runner_gradle-cache`.
volumes:
- gradle-cache:/cache/gradle
- toolcache:/opt/hostedtoolcache
- work:/_work
volumes:
gradle-cache:
toolcache:
work: