1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 17:56:26 +00:00

Corrected not-so-tasty gitlab runner recipe

This commit is contained in:
David Young
2019-05-01 13:40:29 +12:00
parent f3036dfed5
commit a584363834
7 changed files with 232 additions and 5 deletions

View File

@@ -33,17 +33,17 @@ Create a docker swarm config file in docker-compose syntax (v3), something like
version: '3'
services:
1:
thing1:
image: gitlab/gitlab-runner
volumes:
- /var/data/gitlab-runner/1:/var/data/gitlab/runners/1
- /var/data/gitlab/runners/1:/etc/gitlab-runner
networks:
- internal
2:
thing2:
image: gitlab/gitlab-runner
volumes:
- /var/data/gitlab-runner/:/var/data/gitlab/runners/2
- /var/data/gitlab/runners/2:/etc/gitlab-runner
networks:
- internal
@@ -58,7 +58,7 @@ networks:
### Configure runners
From your GitLab UI, you can retrieve a "token" necessary to register a new runner. To register the runner, you can either create config.toml in each runner's bind-mounted folder (example below), or just "docker exec" into each runner container and execute ```gitlab-container register``` to interactively generate config.toml.
From your GitLab UI, you can retrieve a "token" necessary to register a new runner. To register the runner, you can either create config.toml in each runner's bind-mounted folder (example below), or just "docker exec" into each runner container and execute ```gitlab-runner register``` to interactively generate config.toml.
Sample runner config.toml: