Book Image

GitLab Quick Start Guide

By : Adam O'Grady
Book Image

GitLab Quick Start Guide

By: Adam O'Grady

Overview of this book

Gitlab is an open source repository management and version control toolkit with an enterprise offering. This book is the ideal guide to GitLab as a version control system (VCS), issue management tool, and a continuous integration platform. The book starts with an introduction to GitLab, a walkthrough of its features, and explores concepts such as version control systems, continuous integration, and continuous deployment. It then takes you through the process of downloading and installing a local copy of the on-premise version of GitLab in Ubuntu and/or CentOS. You will look at some common work?ows associated with GitLab work?ow and learn about project management in GitLab. You will see tools and techniques for migrating your code base from various version control systems such as GitHub and SVN to GitLab. By the end of the book, you will be using Gitlab for repository management, and be able to migrate projects from other VCSs to GitLab.
Table of Contents (10 chapters)

Omnibus on Ubuntu/Debian

To install GitLab using the omnibus package on an Ubuntu or Debian system, make sure that you have a server with one of the following versions installed on it:

  • Ubuntu 14.04 LTS
  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Debian 7
  • Debian 8
  • Debian 9

While the installation may work on other systems, it isn't guaranteed.

First, you'll need to connect to a Terminal session, update your package lists, and make sure that a few key packages are installed by running the following commands:

sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates

Next, you'll need to decide whether you want to use Postfix to send notification emails or an external SMTP provider. While the latter is recommended, if you do plan to use Postfix, you'll need to install it like so:

sudo apt-get install -y postfix

During the installation of Postfix, a...