How
To configure Git Inhouse server
Requirement
·
GitLab on CentOS 7
·
Ruby versions 2.3
·
Redis
·
Postgres
·
Nginx
·
1 core CPU can support upto 100 users
but recommended 2 core CPU which can easily support up to 500 users.
·
At least 2GB memory combining both RAM
and swap. Apart from this we will need to install all the required dependencies
For
OS complete Update
yum
-y update
For
install Openssh server & client and enable ssh
yum
-y install openssh-server openssh-clients sudo systemctl enable sshd sudo
systemctl start sshd
For
install dependency
yum
-y install curl policycoreutils postfix sudo systemctl enable postfix sudo
systemctl start postfix
For
enable http & https globally access
firewall-cmd
--permanent --add-service=http sudo firewall-cmd --permanent
--add-service=https sudo
For
restart firewall
systemctl
reload firewalld
For
download gitlab repo
curl
-sS
https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh
| sudo bash
For install gitlab community edition
yum
-y install gitlab-ce
gitlab-ctl reconfigure
For change external URL change
Edit /etc/gitlab/gitlab.rb file and change
external_url 'http://gitlab.example.com'
gitlab-ctl
reconfigure
&
gitlab-ctl
restart
For enable SSL for gitlab
Create
the /etc/gitlab/ssl directory and copy your key and
certificate there. Now run gitlab-ctl
reconfigure . When the reconfigure finishes your GitLab instance should be reachable at
https://gitlab.example.com . If
you are using a firewall you may
have to open port 443 to allow inbound HTTPS traffic as well as need to change
external URL again.
Gitlab standered repository path : /var/opt/gitlab/git-data/repositories
For Git backup either clone repo or just copy paste whole repositories folder
for uninstall run
/gitlab-ctl uninstall
Gitlab standered repository path : /var/opt/gitlab/git-data/repositories
For Git backup either clone repo or just copy paste whole repositories folder
for uninstall run
/gitlab-ctl uninstall
0 comments:
Post a Comment