Installing the coordinator

The coordinator is the heart of the GitLab CI system. This will let you see all the builds in a web interface, and it will also control the runners, which we will add later. The coordinator doesn't execute any builds. For the purpose of building, we will use decoupled runners. In this recipe, we will install the coordinator, and in the recipe, Installing a runner, we will install the runner to run our tests.

How to do it…

In the following steps, we will install the CI coordinator:

  1. Log in via SSH to your CI server.
  2. Go to the gitlab_ci home folder:
    $ cd /home/gitlab_ci/
    
  3. Download the source code for the CI server:
    $ sudo -u gitlab_ci -H git clone https://gitlab.com/gitlab-org/gitlab-ci.git
    $ cd gitlab-ci
    $ sudo -u gitlab_ci ...

Get GitLab Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.