configure gitlab in ubuntu 16.04
1. Short intro
2. Minimum Requirement
3. Installation
4. Web panel ( create project, create user )
5. Clone project
Short Introduction to gitlab -
gitlab is same as git server but it has web panel.
Gitlab is alternative of Github, Subversion, bitbucket by maintaining private cloud.
GitLab is an application to code, test, and deploy code together.
It provides Git repository management with fine grained access controls,
code reviews, issue tracking, activity feeds, wikis, and continuous integration.
GitLab Inc. is a company based on the GitLab open-source project. GitLab is an integrated product that unifies issues, code review, CI and CD into a single UI.
GitLab is a web-based Git repository manager with wiki and issue tracking features, using an open source license, developed by GitLab Inc.
For more detail visit : https://docs.gitlab.com/ee/README.html
Minimum Requirement -
i was working in deploying of gitlab server in centos 7, and i realized that atleast for gitlab server, the minimum server requirement is 6GB RAM, minimum 2 CPU core and 10 GB hard disk size. it can change depending upon your need.
RAM - 6GB
CPU core - 2 core
Size - 10GB
Distro - ubuntu 16.04
Installation -
First we need to install packages but before that we need to disable firewall or need to add ports to firewall.
sudo ufw allow http
sudo ufw allow openssh
now we need to install some packages -
$ sudo apt-get update -y
$ sudo apt-get install curl policycoreutils openssh-server openssh-client -y
$ sudo systemctl start sshd
$ sudo systemctl enable sshd
$ sudo apt-get install postfix
$ sudo systemctl start postfix
$ sudo systemctl enable postfix
$ bash script.deb.sh
$ sudo apt-get install gitlab-ce
after installation, it will show gitlab logo,
$ gitlab-ctl reconfigure
$ gitlab-ctl status
4. Web Panel configuration -
go to browser and search for your server ip address
http://IP_ADDR_OF_YOUR_SERVER
after searching or visiting your IP address, it will ask for new password for root user which is admin user.
after setting password for root user,
it will redirect to sign in link.
after giving credential to server, it will give you proper web panel of gitlab. and now you can access seach feature of gitlab in web panel like creating users, projects, setting privileges and many more.
you will see"+" sign in the upper right side of gitlab to create new project.
give your project name , description and visibility level and create project.
now it will give you link for your website, you can change that DNS part and put your IP address in that red part.
5. Clone project -
i am using windows system to clone my new empty project. and for cloing using git command i am using git bash which windows software. you can use any other software like bitbucket.
let me know if you want to know how to install git in linux and how to clone git repo in linux and windows.
![]() |
git bash |
now i am cloning my project in my windows machine,
now it will ask for password for root user,
now you will see that it cloned directory in which " .git " is present which is configuration of server.
and my branch is master
now i am creating file " index.html" and put some values in it using echo command.
after putting content or creating some files inside that directory.
using " git status " command we can check the status of git.
now i am adding files to include in commit command
and after adding we will check the status of git using "git status" command
now i am commting my files or changes using commit command with message.
now, i am pushing changes or new files to the main server using push command
you will see that file we create in local machine and after using push command it goes and save to server.
and by clicking the file, you check the content of file.
sorry for not mentioning detail about the git command. you can go to main website for more brief detail about commands and if you want me create some more detailed content let me know in comment section.
User Creation :
click the Admin area part,
Click the "New user" to create user with detail
after done with detail create user
and with this function, you can create different user and provide less privileges.
hope you find this content useful or informative. please do subscribe my channel for future Linux or Tech vidoes :)
Comments
Post a Comment