Hi,
has anyone tried Gitlab on Rockylinux 8.4 yet?
I’m running gitlab on CentOS as rpm based installation and have to migrate due to CentOS 8 EOL.
Thanks,
Frank
Hi,
has anyone tried Gitlab on Rockylinux 8.4 yet?
I’m running gitlab on CentOS as rpm based installation and have to migrate due to CentOS 8 EOL.
Thanks,
Frank
Hi,
A clean install works for me, but providing you install the same version on rocky, and then restore from the same version of gitlab on your CentOS install, in theory it should be fine. This is how I set mine up:
Download the script to set up the repos:
[root@rocky ~]# wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh
Make the script executable:
[root@rocky ~]# chmod +x script.rpm.sh
Run the script passing the appropriate parameters to override:
[root@rocky ~]# os=el dist=8 ./script.rpm.sh
Detected operating system as el/8.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=el&dist=8&source=script
done.
Installing yum-utils...
gitlab_gitlab-ce-source 300 B/s | 862 B 00:02
gitlab_gitlab-ce-source 3.3 kB/s | 3.1 kB 00:00
Importing GPG key 0x51312F3F:
Userid : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
Fingerprint: F640 3F65 44A3 8863 DAA0 B6E0 3F01 618A 5131 2F3F
From : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
gitlab_gitlab-ce-source 4.2 kB/s | 3.8 kB 00:00
Importing GPG key 0xF27EAB47:
Userid : "GitLab, Inc. <support@gitlab.com>"
Fingerprint: DBEF 8977 4DDB 9EB3 7D9F C3A0 3CFC F9BA F27E AB47
From : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce-3D645A26AB9FBD22.pub.gpg
gitlab_gitlab-ce-source 69 B/s | 296 B 00:04
Dependencies resolved.
============================================================================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================================================================
Installing:
yum-utils noarch 4.0.18-4.el8 baseos 70 k
Transaction Summary
============================================================================================================================================================================================
Install 1 Package
Total download size: 70 k
Installed size: 22 k
Downloading Packages:
yum-utils-4.0.18-4.el8.noarch.rpm 377 kB/s | 70 kB 00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 122 kB/s | 70 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : yum-utils-4.0.18-4.el8.noarch 1/1
Running scriptlet: yum-utils-4.0.18-4.el8.noarch 1/1
Verifying : yum-utils-4.0.18-4.el8.noarch 1/1
Installed:
yum-utils-4.0.18-4.el8.noarch
Complete!
Generating yum cache for gitlab_gitlab-ce...
Importing GPG key 0x51312F3F:
Userid : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
Fingerprint: F640 3F65 44A3 8863 DAA0 B6E0 3F01 618A 5131 2F3F
From : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
Importing GPG key 0xF27EAB47:
Userid : "GitLab, Inc. <support@gitlab.com>"
Fingerprint: DBEF 8977 4DDB 9EB3 7D9F C3A0 3CFC F9BA F27E AB47
From : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce-3D645A26AB9FBD22.pub.gpg
Generating yum cache for gitlab_gitlab-ce-source...
The repository is setup! You can now install packages.
Install gitlab-ce:
[root@rocky ~]# yum install gitlab-ce
Last metadata expiration check: 0:00:23 ago on Fri 02 Jul 2021 11:58:47 CEST.
Dependencies resolved.
============================================================================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================================================================
Installing:
gitlab-ce x86_64 14.0.2-ce.0.el8 gitlab_gitlab-ce 887 M
Installing dependencies:
checkpolicy x86_64 2.9-1.el8 baseos 345 k
policycoreutils-python-utils noarch 2.9-14.el8 baseos 251 k
python3-audit x86_64 3.0-0.17.20191104git1c2f876.el8.1 baseos 85 k
python3-libsemanage x86_64 2.9-6.el8 baseos 126 k
python3-policycoreutils noarch 2.9-14.el8 baseos 2.2 M
python3-setools x86_64 4.3.0-2.el8 baseos 625 k
Transaction Summary
============================================================================================================================================================================================
Install 7 Packages
Total download size: 891 M
Installed size: 2.0 G
Is this ok [y/N]: y
Downloading Packages:
(1/7): python3-audit-3.0-0.17.20191104git1c2f876.el8.1.x86_64.rpm 244 kB/s | 85 kB 00:00
(2/7): checkpolicy-2.9-1.el8.x86_64.rpm 876 kB/s | 345 kB 00:00
(3/7): policycoreutils-python-utils-2.9-14.el8.noarch.rpm 629 kB/s | 251 kB 00:00
(4/7): python3-libsemanage-2.9-6.el8.x86_64.rpm 879 kB/s | 126 kB 00:00
(5/7): python3-setools-4.3.0-2.el8.x86_64.rpm 3.7 MB/s | 625 kB 00:00
(6/7): python3-policycoreutils-2.9-14.el8.noarch.rpm 5.3 MB/s | 2.2 MB 00:00
(7/7): gitlab-ce-14.0.2-ce.0.el8.x86_64.rpm 10 MB/s | 887 MB 01:24
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 10 MB/s | 891 MB 01:25
warning: /var/cache/dnf/gitlab_gitlab-ce-7b189aab552daa48/packages/gitlab-ce-14.0.2-ce.0.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID f27eab47: NOKEY
gitlab_gitlab-ce 3.3 kB/s | 3.1 kB 00:00
Importing GPG key 0x51312F3F:
Userid : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
Fingerprint: F640 3F65 44A3 8863 DAA0 B6E0 3F01 618A 5131 2F3F
From : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
Is this ok [y/N]: y
Key imported successfully
gitlab_gitlab-ce 3.9 kB/s | 3.8 kB 00:00
Importing GPG key 0xF27EAB47:
Userid : "GitLab, Inc. <support@gitlab.com>"
Fingerprint: DBEF 8977 4DDB 9EB3 7D9F C3A0 3CFC F9BA F27E AB47
From : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce-3D645A26AB9FBD22.pub.gpg
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : python3-setools-4.3.0-2.el8.x86_64 1/7
Installing : python3-libsemanage-2.9-6.el8.x86_64 2/7
Installing : python3-audit-3.0-0.17.20191104git1c2f876.el8.1.x86_64 3/7
Installing : checkpolicy-2.9-1.el8.x86_64 4/7
Installing : python3-policycoreutils-2.9-14.el8.noarch 5/7
Installing : policycoreutils-python-utils-2.9-14.el8.noarch 6/7
Running scriptlet: gitlab-ce-14.0.2-ce.0.el8.x86_64 7/7
Installing : gitlab-ce-14.0.2-ce.0.el8.x86_64 7/7
Running scriptlet: gitlab-ce-14.0.2-ce.0.el8.x86_64 7/7
It looks like GitLab has not been configured yet; skipping the upgrade script.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=14-0
Verifying : checkpolicy-2.9-1.el8.x86_64 1/7
Verifying : policycoreutils-python-utils-2.9-14.el8.noarch 2/7
Verifying : python3-audit-3.0-0.17.20191104git1c2f876.el8.1.x86_64 3/7
Verifying : python3-libsemanage-2.9-6.el8.x86_64 4/7
Verifying : python3-policycoreutils-2.9-14.el8.noarch 5/7
Verifying : python3-setools-4.3.0-2.el8.x86_64 6/7
Verifying : gitlab-ce-14.0.2-ce.0.el8.x86_64 7/7
Installed:
checkpolicy-2.9-1.el8.x86_64 gitlab-ce-14.0.2-ce.0.el8.x86_64 policycoreutils-python-utils-2.9-14.el8.noarch python3-audit-3.0-0.17.20191104git1c2f876.el8.1.x86_64 python3-libsemanage-2.9-6.el8.x86_64
python3-policycoreutils-2.9-14.el8.noarch python3-setools-4.3.0-2.el8.x86_64
Complete!
Configure gitlab however you want as usual with editing /etc/gitlab/gitlab.rb
and setting the external_url
and running gitlab-ctl reconfigure
Screenshot of mine after install, obviously this doesn’t have an FQDN since I am only testing, but you would normally configure that properly in the external_url.
once you have done the initial configure, you can then look at the Gitlab backup/restore docs for moving from your old install. Have fun!