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 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 
    $ sudo apt-get install openssh-server git-core libyaml-dev 
    $ sudo apt-get install redis-server postfix libpq-dev libicu-dev
    
  4. Next, we need to install Ruby using the following commands:

    $ mkdir /tmp/ruby && cd /tmp/ruby
    $ curl --progress...