How to install & configure GITLAB CI/CD on your own Server — Ubuntu 16.04
GitLab is an online Git repository manager with a wiki, issue tracking, CI and CD. It is a great way to manage git repositories on a centralized server. GitLab gives you complete control over your repositories or projects and allows you to decide whether they are public or private for free.
Before going to start we need to ensure that;
- We have configured IP as static IP Address
- We have configured DNS to resolve GITLab IP as required name on network
i.e. 192.168.10.254 gitlab.OpenSourceEducation.net
Here we are going to setup GITLAB Server on our own server based on Ubuntu Machine.
Install and configure the necessary dependencies
sudo apt-get install curl openssh-server ca-certificates postfix
Please select InternetSite during setup of Postfix mail server.
Add the GitLab package server and install the package
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
Configure and start GitLab
sudo gitlab-ctl reconfigure
It will take few minutes to configure required packages, after finishing this process now you need to open your web browser and add your machine ip or domain name
http://192.168.10.254 or http://gitlab.OpenSourceEducation.net
Please use root user and add your new Password in this screen and enjoy your own GITLAB environment.