Kunpeng Environment
You need to set up either the Jenkins or GitLab environment. Do not install both of them on the same server. The following describes how to install the GitLab environment. The operations are for reference only.
Procedure
The following uses openEuler 22.03 SP2 as an example to describe how to set up the GitLab environment.
- Download the GitLab installation package.
wget https://packages.gitlab.cn/repository/el/8/gitlab-jh-16.9.1-jh.0.el8.aarch64.rpm
If the GitLab installation package cannot be downloaded by running this command, you can download it through the link and then upload it to the server for subsequent installation operations.
- Install GitLab.
yum install -y git tar libatomic policycoreutils-python-utils rpm -ivh gitlab-jh-16.9.1-jh.0.el8.aarch64.rpm
If the installation is successful, the following information is displayed:

- Change the IP address and port.
- Open and edit the GitLab configuration file.
vi /etc/gitlab/gitlab.rb
- Change the IP address and port for external access.
external_url 'http://IP address:port'
- IP address: IP address of the server where GitLab is installed
- Port: port of the server where GitLab is installed
Change the values to the actual IP address and port to be accessed.
The port to be accessed cannot be occupied. If it is in use, specify another port that falls within the port range allowed by the firewall.
- Query the OS firewall status of the server.
systemctl status firewalld
If the firewall is enabled (active), perform 3.b.ii to 3.b.v to enable the port. If the firewall is disabled, skip the following operations in this step.
- Check whether the port is enabled. If "no" is displayed, the port is not enabled.
firewall-cmd --query-port=port/tcp
- Permanently enable the port. If "success" is displayed, the port is enabled.
firewall-cmd --add-port=port/tcp --permanent
- Reload the firewall configuration.
firewall-cmd --reload
- Re-check whether the port is enabled. If "yes" is displayed, the port is enabled.
firewall-cmd --query-port = port/tcp
- Open and edit the GitLab configuration file.
- Reload the configuration.
gitlab-ctl reconfigure
The re-configuration may take a long time.
Figure 1 Reconfiguring
- Configure GitLab to automatically start upon system startup.
systemctl enable gitlab-runsvdir.service systemctl start gitlab-runsvdir.service
To disable automatic GitLab startup, run the systemctl disable gitlab-runsvdir.service command.
- Start GitLab.
gitlab-ctl restart
If the startup is successful, the following information is displayed, as shown in Figure 2.
- View the GitLab version.
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
The version should be 16.9.1 if the package version is 16.9.1.
- Access GitLab on the website.
http://IP address:port/
Figure 3 Accessing GitLab
- Log in to GitLab. The default user name for logging in to GitLab is root. The password is stored in the configuration file /etc/gitlab/initial_root_password.
View the password.
cat /etc/gitlab/initial_root_password
Figure 4 Viewing the password
