Gitlab is web based Devops Lifecycle tool created by “Sid Sijbrandij”. It provides remote access to Git repositories as well as other services and features like planning, packaging and management of code. In other words, it simplifies your workflow that makes the software lifecycle fast which significantly increases the speed of business. At last, anyone can easily said that it is a Great tool for Devops Lifecycle. Now, let’s start installing Gitlab on our system.
Step 1: Install the dependencies
Run the commands:
sudo apt-get update sudo apt-get install –y curl openssh-server ca-certificates tzdata perl
Here, I am install Postfix to send notification emails. To install Postfix run this command:
sudo apt-get install –y postfix
During Postfix installation a configuration screen may appear. Select ‘Internet Site’ and press enter. If more configuration screen appears, accept the defaults settings.
Step 2: Add and Install the Gitlab package
To add the Gitlab repository to your system run the following command:
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
Next, we have to install this Gitlab package. Make sure you have correctly set up your DNS, and change https://domain.com to the URL at which you want to access your Gitlab instance.
Now run the final command to install Gitlab instance:
sudo EXTERNAL_URL=”https://gitlab.example.com” apt-get install gitlab-ee
If you find any difficulty in the above steps, you can also refer to the official installation page at https://about.gitlab.com/install/#ubuntu
Step 3: Create the root user account in your Gitlab instance
Now visit the EXTERNAL_URL page which is provided by you in the previous step. In my case it is http://127.0.0.1:8081. You may see the 502 error page like this
But if all the steps as done in the right way, then wait for 5 minutes and you should see the root user password set page.
After setting up the root user password, you see the root user home page on which one project is automatically there with the name “Monitoring”. Congratulations, you have successfully install Gitlab instance.
Post By Jatin(Developer)