GitLab has a separate repository for Runner Server.
Add the repo definition and install the Runner Server package:
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
sudo apt-get install -y gitlab-ci-multi-runner
Check service status:
sudo service gitlab-runner status
Allow non-root user "gitlab-runner" to use Docker:
sudo usermod -aG docker gitlab-runner
Runner Server's config file is /etc/gitlab-runner/config.toml
.
TOML is Tom's Obvious, Minimal Language, easier (for humans) than YAML:
sudo cat /etc/gitlab-runner/config.toml
Example:
concurrent = 1
check_interval = 0
Setting | Description |
---|---|
concurrent | Limits how many jobs globally can be run concurrently. The most upper limit of jobs using all defined runners. 0 does not mean unlimited |
check_interval | defines in seconds how often to check GitLab for a new builds |
We won't look at the other possible settings.
Edit /etc/gitlab-runner/config.toml
to increase concurrency to 3.
sudo vim /etc/gitlab-runner/config.toml
Runner Server will pick up the change automatically.
Now we can run jobs in parallel (provided there are no dependencies).