From f37f45bbe4254bfee52e5a7bd115060270a7029c Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Fri, 2 Dec 2022 04:09:04 +0100 Subject: [PATCH] Add temporary gitlab runner --- .../templates/ba-gitlab-runner/.env | 1 + .../ba-gitlab-runner/docker-compose.yaml | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 coreos-config/roles/compose_project/templates/ba-gitlab-runner/.env create mode 100644 coreos-config/roles/compose_project/templates/ba-gitlab-runner/docker-compose.yaml diff --git a/coreos-config/roles/compose_project/templates/ba-gitlab-runner/.env b/coreos-config/roles/compose_project/templates/ba-gitlab-runner/.env new file mode 100644 index 0000000..72ebfad --- /dev/null +++ b/coreos-config/roles/compose_project/templates/ba-gitlab-runner/.env @@ -0,0 +1 @@ +COMPOSE_PROJECT_NAME=gitlab-ba diff --git a/coreos-config/roles/compose_project/templates/ba-gitlab-runner/docker-compose.yaml b/coreos-config/roles/compose_project/templates/ba-gitlab-runner/docker-compose.yaml new file mode 100644 index 0000000..68dd5df --- /dev/null +++ b/coreos-config/roles/compose_project/templates/ba-gitlab-runner/docker-compose.yaml @@ -0,0 +1,39 @@ +--- +version: "3.4" + +services: + dind: + image: docker:dind + restart: unless-stopped + privileged: true + volumes: + - /lib/modules:/lib/modules:ro + environment: + DOCKER_TLS_CERTDIR: "" + networks: + - backend + - default + + runner: + image: gitlab/gitlab-runner:alpine + restart: unless-stopped + depends_on: + - dind + networks: + - default + - backend + volumes: + - runner_cfg:/etc/gitlab-runner:z + environment: + - DOCKER_HOST=tcp://dind:2375 + - CI_SERVER_URL={{ ba_gitlab_runner.server }} + - REGISTRATION_TOKEN={{ ba_gitlab_runner.token }} + +volumes: + runner_cfg: + +networks: + backend: + internal: true + +...