Book Image

Gitlab Cookbook

By : Jeroen van Baarsen
Book Image

Gitlab Cookbook

By: Jeroen van Baarsen

Overview of this book

Table of Contents (16 chapters)
GitLab Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 -H git checkout 5-0-stable
    
  4. Now we have the source code, it's time to configure the server. Start by copying the example config file:

    $ sudo -u gitlab_ci -H cp config/application.yml.example config/application.yml
    
  5. Now, we edit the file to match our...