configure Gitlab in ubuntu Redhat 6/7 & Centos 6/7
1. Short intro
2. Minimum Requirement
3. Installation
4. Web panel ( create project, create user )
5. Clone project
GitLab Inc. is a company based on the GitLab open-source project.
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.
# yum install curl policycoreutils openssh-server openssh-clients
# systemctl enabled sshd
# systemctl start sshd
# yum install postfix
# systemctl enable postfix
# systemctl start postfix
# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
# yum install gitlab-ce
after installation, it will show gitlab logo,
now we need to put our DNS or IP address entry in gitlab configuration file
in " external_url http:// " put your IP_address or DNS
# gitlab-ctl reconfigure
# gitlab-ctl status
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 - centos 6/7 , redhat 6,7
Installation -
First we need to install packages but before that we need to disable firewall or need to add ports to firewall.
# systemctl stop firewalld
or
#firewall-cmd --permanent -add-service=http
#systemctl reload firewalld
now we need to install some packages -
# systemctl enabled sshd
# systemctl start sshd
# yum install postfix
# systemctl enable postfix
# systemctl start postfix
# yum install gitlab-ce
after installation, it will show gitlab logo,
now we need to put our DNS or IP address entry in gitlab configuration file
in " external_url http:// " put your IP_address or DNS
# gitlab-ctl reconfigure
# gitlab-ctl status
4. Web Panel configuration -
go to browser and search for your server ip address
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,
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
after this all the changes goes to server and u can check the files in web panel of server.
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
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