DevOps Tools/SCM/GitLab
From r00tedvw.com wiki
(Difference between revisions)
(→Download Gitlab and Install) |
(→Download Gitlab and Install) |
||
Line 16: | Line 16: | ||
==Download Gitlab and Install== | ==Download Gitlab and Install== | ||
− | <nowiki>~$ sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab- | + | <nowiki>~$ sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash</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. | 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 | <nowiki>~$ sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee |
Revision as of 10:47, 26 December 2018
Overview | Continuous Integration (CI) | Source Control Management (SCM) | Containerization | Configuration
Contents |
Git Lab
Installing
Done on a CentOS7 machine. Reference
Dependencies and Configuration
~$ sudo yum install -y curl policycoreutils-python openssh-server cronie ~$ 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
~$ sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
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