-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.docker-compose.yml
49 lines (48 loc) · 1.42 KB
/
template.docker-compose.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: qt-coyotes
services:
github-runner-base:
image: qt-coyotes/github-runner-base
build:
context: .
dockerfile: Dockerfile.base
github-runner:
build:
context: .
dockerfile: Dockerfile
depends_on:
- github-runner-base
environment:
REPO_URL: https://github.com/qt-coyotes/mange-classifier
RUNNER_NAME: arvp
ACCESS_TOKEN: <key-here>
RUNNER_WORKDIR: /tmp/runner/work
RUNNER_SCOPE: 'repo'
LABELS: linux,x64,gpu
image: qt-coyotes/github-runner
privileged: true
restart: always
security_opt:
# needed on SELinux systems to allow docker container to manage other docker containers
- label:disable
shm_size: '24gb'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/tmp/runner:/tmp/runner'
# note: a quirk of docker-in-docker is that this path
# needs to be the same path on host and inside the container,
# docker mgmt cmds run outside of docker but expect the paths from within
deploy:
resources:
limits:
cpus: '12'
memory: 32G
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
#github-runner-base:
# image: qt-coyotes/github-runner-base
# build:
# context: .
# dockerfile: Dockerfile.base