How to set up a self-managed GitLab group runner¶
Install docker docker.io:
$ sudo apt install docker docker.io
Add gitlab runner repository in the package manager’s repositories:
$ curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
Install gitlab runner:
$ sudo apt install gitlab-runner
Register gitlab runner:
$ sudo gitlab-runner register
This command will prompt for some inputs. Give the values described below to the associated inputs:
> url: https://gitlab.com/
> registration-token: (the token from lino-framework.org:/var/gitlab_runner_group_registration_token)
> executor: docker
> docker-image: debian:latest
> description: (give any description to your liking)
> tag-list: lino,linorunner
To get the registration-token from lino-framework.org, use:
$ ssh username@lino-framework.org
$ sudo cat /var/gitlab_runner_group_registration_token
Leave (just press ENTER/RETRUN on) the other input prompts.
Thank you