DevOps Tools/SCM/GitLab
From r00tedvw.com wiki
(Difference between revisions)
Line 1: | Line 1: | ||
[[DevOps_Tools\Overview|Overview]] | [[DevOps_Tools\SCM|Source Control Management (SCM)]]<br> | [[DevOps_Tools\Overview|Overview]] | [[DevOps_Tools\SCM|Source Control Management (SCM)]]<br> | ||
[[DevOps_Tools\SCM\GitLab|Git Lab]] | [[DevOps_Tools\SCM\GitLab|Git Lab]] | ||
+ | =Installing= | ||
+ | Done on a CentOS7 machine. | ||
+ | ==Dependencies and Configuration== | ||
+ | <nowiki>~$ sudo yum install -y curl policycoreutils-python openssh-server | ||
+ | ~$sudo systemctl enable sshd | ||
+ | ~$sudo systemctl start sshd | ||
+ | |||
+ | ~$sudo firewall-cmd --permanent --add-service=http | ||
+ | ~$sudo systemctl reload firewalld</nowiki> | ||
+ | Setup Postfix | ||
+ | <nowiki>~$ sudo yum install postfix | ||
+ | ~$ sudo systemctl enable postfix | ||
+ | ~$ sudo systemctl start postfix</nowiki> | ||
+ | |||
+ | =Download Gitlab and Install= | ||
+ | <nowiki>~$ wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | ||
+ | ~$ sudo chmod +x ./script.rpm.sh | ||
+ | ~$ ./script.rpm.sh</nowiki> | ||
+ | Configure. After Gitlab 10.7, if you specified the External URL to be <code>https</code> then gitlab will automatically use Let's Encrypt to generate the SSL certificate. | ||
+ | <nowiki>~$ sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee |
Revision as of 13:42, 20 June 2018
Overview | Source Control Management (SCM)
Git Lab
Installing
Done on a CentOS7 machine.
Dependencies and Configuration
~$ sudo yum install -y curl policycoreutils-python openssh-server ~$sudo systemctl enable sshd ~$sudo systemctl start sshd ~$sudo firewall-cmd --permanent --add-service=http ~$sudo systemctl reload firewalld
Setup Postfix
~$ sudo yum install postfix ~$ sudo systemctl enable postfix ~$ sudo systemctl start postfix
Download Gitlab and Install
~$ wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh ~$ sudo chmod +x ./script.rpm.sh ~$ ./script.rpm.sh
Configure. After Gitlab 10.7, if you specified the External URL to be https
then gitlab will automatically use Let's Encrypt to generate the SSL certificate.
~$ sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee