Created
April 3, 2024 08:11
-
-
Save ukewea/3297c11ecad7f9750e99ffcf73f5fb35 to your computer and use it in GitHub Desktop.
docker-compose.yaml of knatnetwork/github-runner behind a corporate proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
runner: | |
image: knatnetwork/github-runner:jammy-2.315.0 | |
restart: always | |
environment: | |
RUNNER_REGISTER_TO: 'org-name' | |
RUNNER_LABELS: 'purpose1,spec2' | |
KMS_SERVER_ADDR: 'http://kms:3000' | |
ADDITIONAL_FLAGS: '--ephemeral' | |
# I setup a CNTLM proxy and listens to docker0 interface | |
http_proxy: "http://172.17.0.1:3128/" | |
https_proxy: "http://172.17.0.1:3128/" | |
# a must set environment variable for curl to connect directly to kms without proxy | |
no_proxy: "kms" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
depends_on: | |
- kms | |
kms: | |
image: ghcr.io/ukewea/github-runner:latest | |
restart: always | |
environment: | |
# I setup a CNTLM proxy and listens to docker0 interface | |
https_proxy: "http://172.17.0.1:3128/" | |
volumes: | |
- ./org-pat-map.json:/root/org-pat-map.json:ro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment