Installing the dependencies

Before you can install GitLab CI, we need to have some dependencies in place. These dependencies ensure GitLab CI runs smoothly later on in the process. We will install the following dependencies:

  • System packages
  • The Redis server
  • Ruby
  • PostgreSQL

How to do it…

Let's install the dependencies:

  1. Log in via SSH to your GitLab server.
  2. Let's ensure that our system is up to date using the following command:
    $ sudo apt-get update && sudo apt-get upgrade
    
  3. Install the required packages:
    $ sudo apt-get install wget curl gcc checkinstall libxml2-dev
    $ sudo apt-get install libxslt-dev libcurl4-openssl-dev 
    $ sudo apt-get install libreadline6-dev libc6-dev libssl-dev 
    $ sudo apt-get install libmysql++-dev make build-essential zlib1g-dev 

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.