Friday, June 9, 2017

GitLab: For private Git repository

I assume here that the reader has basic knowledge about GitHub, BitBucket or SourceForge or some other alternatives to GitHub. Now, as a member of small research team, my responsibility is to setup something like GitHub in our own private server. The objective is to store and access individual's source code used for varification and evaluation of own research projects in a secure place. It's quite similar to GitHub.

For this requirement,I found GitLab as one of the best solutions. Installation of such software tool is a straight-forward procedure.

Installation Procedures:


Environment

In our physical server, NO other webserver is installed.
OS: Ubuntu 14.04, 64-bit Desktop version

Step-1:
Open the terminal by pressing Alt + Ctrl + T.

Step-2:
Enter the following command
sudo apt-get install curl openssh-server ca-certificates postfix
 
 This will install curl to get download the required packages, openssh-server for secure connection, postfix to setup mailing server and other essential packages.

Step-3: 
Now run the following commands donwload and install community edition of GitLab
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce

Pre-Final Step:
Reconfigure the gitlab-ce and start the GitLab server by running following command
sudo gitlab-ctl reconfigure

Final Step:
Once the server is ready, please open any web browser. Visit http://127.0.0.1 or http://localhost or http://<The IP of own server>
At first, enter the new password for the administrator. Once the password for the administrator is setup, other usernow can signup their account and enjoy own git repository.

For more information please visit GitLab official homepage.


-Thank you



No comments:

Post a Comment