|
| 1 | +name: proof-systems-github-runners |
| 2 | + |
| 3 | +networks: |
| 4 | + proof-systems: |
| 5 | + driver: bridge |
| 6 | + |
| 7 | +services: |
| 8 | + proof-systems-runner-1: |
| 9 | + image: ${GITHUB_RUNNER_DOCKER_IMAGE} |
| 10 | + environment: |
| 11 | + REPO_URL: ${GITHUB_RUNNERS_REPO_URL} |
| 12 | + RUNNER_NAME: ${GITHUB_RUNNER_NAME_PERFIX}-1 |
| 13 | + RUNNER_TOKEN: ${GITHUB_RUNNER_1_TOKEN} |
| 14 | + RUNNER_WORKDIR: /tmp/${GITHUB_RUNNER_NAME_PERFIX}-1/work |
| 15 | + RUNNER_GROUP: ${GITHUB_RUNNERS_GROUP} |
| 16 | + RUNNER_SCOPE: "${GITHUB_RUNNER_SCOPE}" |
| 17 | + LABELS: linux,x64,${GITHUB_RUNNERS_GROUP},${GITHUB_RUNNER_NAME_PERFIX}-1 |
| 18 | + security_opt: |
| 19 | + # needed on SELinux systems to allow docker container to manage other docker containers |
| 20 | + - label:disable |
| 21 | + volumes: |
| 22 | + - "/var/run/docker.sock:/var/run/docker.sock" |
| 23 | + - "/tmp/${GITHUB_RUNNER_NAME_PERFIX}-1:/tmp/${GITHUB_RUNNER_NAME_PERFIX}-1" |
| 24 | + # note: a quirk of docker-in-docker is that this path |
| 25 | + # needs to be the same path on host and inside the container, |
| 26 | + # docker mgmt cmds run outside of docker but expect the paths from within |
| 27 | + |
| 28 | + proof-systems-runner-2: |
| 29 | + image: ${GITHUB_RUNNER_DOCKER_IMAGE} |
| 30 | + environment: |
| 31 | + REPO_URL: ${GITHUB_RUNNERS_REPO_URL} |
| 32 | + RUNNER_NAME: ${GITHUB_RUNNER_NAME_PERFIX}-2 |
| 33 | + RUNNER_TOKEN: ${GITHUB_RUNNER_2_TOKEN} |
| 34 | + RUNNER_WORKDIR: /tmp/${GITHUB_RUNNER_NAME_PERFIX}-2/work |
| 35 | + RUNNER_GROUP: ${GITHUB_RUNNERS_GROUP} |
| 36 | + RUNNER_SCOPE: "${GITHUB_RUNNER_SCOPE}" |
| 37 | + LABELS: linux,x64,${GITHUB_RUNNERS_GROUP},${GITHUB_RUNNER_NAME_PERFIX}-2 |
| 38 | + security_opt: |
| 39 | + # needed on SELinux systems to allow docker container to manage other docker containers |
| 40 | + - label:disable |
| 41 | + volumes: |
| 42 | + - "/var/run/docker.sock:/var/run/docker.sock" |
| 43 | + - "/tmp/${GITHUB_RUNNER_NAME_PERFIX}-2:/tmp/${GITHUB_RUNNER_NAME_PERFIX}-2" |
| 44 | + # note: a quirk of docker-in-docker is that this path |
| 45 | + # needs to be the same path on host and inside the container, |
| 46 | + # docker mgmt cmds run outside of docker but expect the paths from within |
| 47 | + |
| 48 | + proof-systems-runner-3: |
| 49 | + image: ${GITHUB_RUNNER_DOCKER_IMAGE} |
| 50 | + environment: |
| 51 | + REPO_URL: ${GITHUB_RUNNERS_REPO_URL} |
| 52 | + RUNNER_NAME: ${GITHUB_RUNNER_NAME_PERFIX}-3 |
| 53 | + RUNNER_TOKEN: ${GITHUB_RUNNER_3_TOKEN} |
| 54 | + RUNNER_WORKDIR: /tmp/${GITHUB_RUNNER_NAME_PERFIX}-3/work |
| 55 | + RUNNER_GROUP: ${GITHUB_RUNNERS_GROUP} |
| 56 | + RUNNER_SCOPE: "${GITHUB_RUNNER_SCOPE}" |
| 57 | + LABELS: linux,x64,${GITHUB_RUNNERS_GROUP},${GITHUB_RUNNER_NAME_PERFIX}-3 |
| 58 | + security_opt: |
| 59 | + # needed on SELinux systems to allow docker container to manage other docker containers |
| 60 | + - label:disable |
| 61 | + volumes: |
| 62 | + - "/var/run/docker.sock:/var/run/docker.sock" |
| 63 | + - "/tmp/${GITHUB_RUNNER_NAME_PERFIX}-3:/tmp/${GITHUB_RUNNER_NAME_PERFIX}-3" |
| 64 | + # note: a quirk of docker-in-docker is that this path |
| 65 | + # needs to be the same path on host and inside the container, |
| 66 | + # docker mgmt cmds run outside of docker but expect the paths from within |
| 67 | + |
| 68 | + proof-systems-runner-4: |
| 69 | + image: ${GITHUB_RUNNER_DOCKER_IMAGE} |
| 70 | + environment: |
| 71 | + REPO_URL: ${GITHUB_RUNNERS_REPO_URL} |
| 72 | + RUNNER_NAME: ${GITHUB_RUNNER_NAME_PERFIX}-4 |
| 73 | + RUNNER_TOKEN: ${GITHUB_RUNNER_4_TOKEN} |
| 74 | + RUNNER_WORKDIR: /tmp/${GITHUB_RUNNER_NAME_PERFIX}-4/work |
| 75 | + RUNNER_GROUP: ${GITHUB_RUNNERS_GROUP} |
| 76 | + RUNNER_SCOPE: "${GITHUB_RUNNER_SCOPE}" |
| 77 | + LABELS: linux,x64,${GITHUB_RUNNERS_GROUP},${GITHUB_RUNNER_NAME_PERFIX}-4 |
| 78 | + security_opt: |
| 79 | + # needed on SELinux systems to allow docker container to manage other docker containers |
| 80 | + - label:disable |
| 81 | + volumes: |
| 82 | + - "/var/run/docker.sock:/var/run/docker.sock" |
| 83 | + - "/tmp/${GITHUB_RUNNER_NAME_PERFIX}-4:/tmp/${GITHUB_RUNNER_NAME_PERFIX}-4" |
| 84 | + # note: a quirk of docker-in-docker is that this path |
| 85 | + # needs to be the same path on host and inside the container, |
| 86 | + # docker mgmt cmds run outside of docker but expect the paths from within |
0 commit comments