Created
April 14, 2018 19:05
-
-
Save BlinkyStitt/a664fa232e58836c367dc2c4034236f0 to your computer and use it in GitHub Desktop.
GitLab Runner
This file contains hidden or 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
# docker-compose up -d | |
# docker-compose exec runner bash | |
# # gitlab-runner register | |
# # vi /etc/gitlab-runner/config.toml | |
#concurrent = $LIMIT | |
#check_interval = 0 | |
# | |
#[[runners]] | |
# name = "$HOST" | |
# limit = $LIMIT | |
# url = "https://gitlab.stytt.com" | |
# token = "$TOKEN" | |
# executor = "docker" | |
# clone_url = "https://gitlab.stytt.com" | |
# environment = ["BUILD_PROXY=http://10.11.12.26:8000"] | |
# [runners.docker] | |
# tls_verify = false | |
# image = "docker:latest" | |
# privileged = false | |
# disable_cache = false | |
# volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"] | |
# pull_policy = "always" | |
# shm_size = 0 | |
# [runners.cache] | |
# # exit | |
# docker-compose restart runner | |
version: '2.3' | |
volumes: | |
runner_etc: | |
runner_home: | |
services: | |
runner: | |
image: gitlab/gitlab-runner:alpine | |
restart: always | |
volumes: | |
- runner_etc:/etc/gitlab-runner | |
- runner_home:/home/gitlab-runner | |
- /var/run/docker.sock:/var/run/docker.sock | |
environment: | |
CI_SERVER_URL: https://gitlab.stytt.com | |
CLONE_URL: https://gitlab.stytt.com # TODO: do this without using shared_public | |
DOCKER_IMAGE: docker:latest | |
RUNNER_ENV: "BUILD_PROXY=http://10.11.12.26:8000" | |
DOCKER_PULL_POLICY: always | |
REGISTER_NON_INTERACTIVE: "false" | |
REGISTER_LOCKED: "false" | |
RUNNER_EXECUTOR: docker | |
RUNNER_LIMIT: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment