Rocky 8.x gitlab install on a new machine
From Notes_Wiki
Home > Rocky Linux or CentOS > Rocky Linux 8.x > DevOps > Version Control > gitlab > gitlab install on a new machine
To install gitlab on a Rocky 8.x machine use:
- Ensure proper DNS based resolution for desired FQDN.
- Installing gitlab using IP address will not work
- Configure the desired FQDN to resolve to LAN IP via /etc/hosts
- Upgrade the machine
- dnf -y upgrade
- Configure ntp client via CentOS 8.x chronyc ntp client configuration
- Create repository configuration file '/etc/yum.repos.d/gitlab_gitlab-ce.repo' with following contents:
[gitlab_gitlab-ce] name=gitlab_gitlab-ce baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/8/\$basearch repo_gpgcheck=1 gpgcheck=1 enabled=1 gpgkey=https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce-3D645A26AB9FBD22.pub.gpg sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300
- Validate above repository is configured properly with
- dnf repolist
- Install and enable postfix with:
- dnf -y install postfix
- systemctl enable postfix
- systemctl start postfix
- systemctl status postfix
- Optionally if email should go via relay configure appropriate settings using CentOS 8.x postfix send email through relay or smarthost with smtp authentication
- Install gitlab using configured repo via:
- EXTERNAL_URL="http://<fqdn-selected-for-repo>" dnf install -y gitlab-ce
- Check initial root password in file '/etc/gitlab/initial_root_password'
- Login at http://<fqdn> via root and observed password.
- We can check installed gitlab version via:
- gitlab-rake gitlab:env:info
Refer:
There is older article on this at CentOS 7.x gitlab on VM or phyical machine
Home > Rocky Linux or CentOS > Rocky Linux 8.x > DevOps > Version Control > gitlab > gitlab install on a new machine