Manually Deploying GitLab (CentOS 7.2)
Overview
The best practices for Huawei Cloud ECS guide you through the manual deployment of GitLab on a Linux ECS. GitLab is an open-source version management system that uses Git as the code management tool. The CentOS 7.2 64bit OS is used as an example in this section.
Prerequisites
- The memory of the target ECS is greater than or equal to 4 GB.
- The rule listed in the following table has been added to the security group which the target ECS belongs to. For details, see Adding a Security Group Rule.
Table 1 Security group rule Direction
Priority
Action
Type
Protocol & Port
Source Address
Inbound
1
Allow
IPv4
TCP: 80
0.0.0.0/0
Procedure
- Install the dependency package.
- Install Postfix to send emails.
- Add the GitLab repository and install the software package.
- Run the following command to add the GitLab repository:
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
- Run the following command to install GitLab:
sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee
Set EXTERNAL_URL to the IP address of the GitLab server, which can be the public IP address of the server or the domain name.
- After the command is executed, you can view the software download speed and the estimated download completion time in the command output.
If information similar to the following is displayed, GitLab has been installed:
Running handlers: Running handlers complete Chef Client finished, 452/672 resources updated in 01 minutes 38 seconds gitlab Reconfigured! *. *. *** *** ***** ***** .****** ******* ******** ******** ,,,,,,,,,***********,,,,,,,,, ,,,,,,,,,,,*********,,,,,,,,,,, .,,,,,,,,,,,*******,,,,,,,,,,,, ,,,,,,,,,*****,,,,,,,,,. ,,,,,,,****,,,,,, .,,,***,,,, ,*,. _______ __ __ __ / ____(_) /_/ / ____ _/ /_ / / __/ / __/ / / __ `/ __ \ / /_/ / / /_/ /___/ /_/ / /_/ / \____/_/\__/_____/\__,_/_.___/ Thank you for installing GitLab!
- Run the following command to add the GitLab repository:
- Test the GitLab deployment.
- Enter http://Server IP address in the address bar. If the following page is displayed, GitLab has been set up.
- Change the password upon your first login. Then, enter the new password to log in.
- Enter http://Server IP address in the address bar. If the following page is displayed, GitLab has been set up.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.