How To Install a GitLab Server in 20 Minutes
What’s gitLab why I should install it? Git-lab is a complete devops tool in a single application. Inside it we can find lots of coll stuff, from project planning, source code management, CI/CD, monitoring and security tools to help us build and maintain our applications. To follow along you will need to: Download and
What’s gitLab why I should install it?
Git-lab is a complete devops tool in a single application. Inside it we can find lots of coll stuff,
from project planning, source code management, CI/CD, monitoring and security tools to help us build and maintain our applications.
To follow along you will need to:
- Download and Install VirtualBox (out of scope of this tutorial)
- Download a copy of Ubuntu 18.04 server from the official website
Install GitLab Server:
- Create a new Virtual Machine
- Install Ubuntu on the new virtual Machine
- Install GitLab on Ubuntu – https://about.gitlab.com/install/#ubuntu
- Set the Virtual machine to use bridged network
- Find the machine IP address and setup the hosts file
Install GitLab on Ubuntu Server:
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates
Optional Install Postfix
Next, install Postfix to send notification emails. If you want to use another solution to send emails please skip this step and configure an external SMTP server after GitLab has been installed.
sudo apt-get install -y postfix
The Git Lab Package Repository Installation
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
Next, install the GitLab package. Change https://gitlab.example.com to the URL at which you want to access your GitLab instance. Installation will automatically configure and start GitLab at that URL.
For https:// URLs GitLab will automatically request a certificate with Let’s Encrypt, which requires inbound HTTP access and a valid hostname. You can also use your own certificate or just use http://.
sudo EXTERNAL_URL="https://gitlab.test" apt-get install gitlab-ee
Visit gitlab.test in the browser.