]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
bootstrap: Migrate to Rocky8
authorDavid Mulder <dmulder@samba.org>
Tue, 27 Aug 2024 15:32:43 +0000 (09:32 -0600)
committerMartin Schwenke <martins@samba.org>
Wed, 28 Aug 2024 00:24:35 +0000 (00:24 +0000)
Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Aug 28 00:24:35 UTC 2024 on atb-devel-224

.gitlab-ci-main.yml
bootstrap/.gitlab-ci.yml
bootstrap/config.py
bootstrap/generated-dists/Vagrantfile
bootstrap/generated-dists/rocky8/Dockerfile [moved from bootstrap/generated-dists/centos8s/Dockerfile with 96% similarity]
bootstrap/generated-dists/rocky8/bootstrap.sh [moved from bootstrap/generated-dists/centos8s/bootstrap.sh with 92% similarity]
bootstrap/generated-dists/rocky8/locale.sh [moved from bootstrap/generated-dists/centos8s/locale.sh with 100% similarity]
bootstrap/generated-dists/rocky8/packages.yml [moved from bootstrap/generated-dists/centos8s/packages.yml with 100% similarity]
bootstrap/sha1sum.txt

index acca9e0754b087a04ea2bd4b6b9613ed190729ca..660cb6e973580d2881b7086452a81b564271c51f 100644 (file)
@@ -47,7 +47,7 @@ variables:
   # Set this to the contents of bootstrap/sha1sum.txt
   # which is generated by bootstrap/template.py --render
   #
-  SAMBA_CI_CONTAINER_TAG: d7e721bceae90834dfe04e8a9ba864a55d1c49e1
+  SAMBA_CI_CONTAINER_TAG: d1ce7e10953d16253a34b8e58077fd32c1dbd59c
   #
   # We use the ubuntu2204 image as default as
   # it matches what we have on atb-devel-224
@@ -64,7 +64,7 @@ variables:
   SAMBA_CI_CONTAINER_IMAGE_debian11_32bit: debian11-32bit
   SAMBA_CI_CONTAINER_IMAGE_debian12: debian12
   SAMBA_CI_CONTAINER_IMAGE_opensuse155: opensuse155
-  SAMBA_CI_CONTAINER_IMAGE_centos8s: centos8s
+  SAMBA_CI_CONTAINER_IMAGE_rocky8: rocky8
   SAMBA_CI_CONTAINER_IMAGE_centos9s: centos9s
   SAMBA_CI_CONTAINER_IMAGE_fedora40: fedora40
 
@@ -662,10 +662,10 @@ opensuse155-samba-o3:
   variables:
     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_opensuse155}
 
-centos8s-samba-o3:
+rocky8-samba-o3:
   extends: .samba-o3-template
   variables:
-    SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_centos8s}
+    SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_rocky8}
 
 centos9s-samba-o3:
   extends: .samba-o3-template
index 1f94532e757d8e8fc992c0a2f96dc1707bdfa3cf..ac2b4ebed09a6ebf3af593af0fc30fb669fb3c8e 100644 (file)
@@ -106,7 +106,7 @@ debian11-32bit:
   variables:
     SAMBA_CI_TEST_JOB: "samba-32bit"
 
-centos8s:
+rocky8:
   extends: .build_image_template
 
 centos9s:
index 178c9029098a5e7f2708e656a6d21a710219e307..7e6c0f47d676b3dd5c2bba951da295862e889723 100644 (file)
@@ -236,14 +236,11 @@ if [ ! -f /usr/bin/python3 ]; then
 fi
 """
 
-CENTOS8S_YUM_BOOTSTRAP = r"""
+ROCKY8_DNF_BOOTSTRAP = r"""
 #!/bin/bash
 {GENERATED_MARKER}
 set -xueo pipefail
 
-sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
-sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
-
 yum update -y
 yum install -y dnf-plugins-core
 yum install -y epel-release
@@ -507,10 +504,10 @@ DEB_DISTS = {
 
 
 RPM_DISTS = {
-    'centos8s': {
-        'docker_image': 'quay.io/centos/centos:stream8',
-        'vagrant_box': 'centos/stream8',
-        'bootstrap': CENTOS8S_YUM_BOOTSTRAP,
+    'rocky8': {
+        'docker_image': 'docker.io/library/rockylinux:8',
+        'vagrant_box': 'rocky/8',
+        'bootstrap': ROCKY8_DNF_BOOTSTRAP,
         'replace': {
             'lsb-release': 'redhat-lsb',
             '@development-tools': '"@Development Tools"',  # add quotes
index 79ccea780be73252bae08974007709ef18acb0ff..c1809cfe6b8bcda161b2d54c05fc4c79edd1ad38 100644 (file)
@@ -10,13 +10,6 @@ Vagrant.configure("2") do |config|
     config.ssh.insert_key = false
 
 
-    config.vm.define "centos8s" do |v|
-        v.vm.box = "centos/stream8"
-        v.vm.hostname = "centos8s"
-        v.vm.provision :shell, path: "centos8s/bootstrap.sh"
-        v.vm.provision :shell, path: "centos8s/locale.sh"
-    end
-
     config.vm.define "centos9s" do |v|
         v.vm.box = "centos/stream9"
         v.vm.hostname = "centos9s"
@@ -66,6 +59,13 @@ Vagrant.configure("2") do |config|
         v.vm.provision :shell, path: "opensuse155/locale.sh"
     end
 
+    config.vm.define "rocky8" do |v|
+        v.vm.box = "rocky/8"
+        v.vm.hostname = "rocky8"
+        v.vm.provision :shell, path: "rocky8/bootstrap.sh"
+        v.vm.provision :shell, path: "rocky8/locale.sh"
+    end
+
     config.vm.define "ubuntu1804" do |v|
         v.vm.box = "ubuntu/bionic64"
         v.vm.hostname = "ubuntu1804"
similarity index 96%
rename from bootstrap/generated-dists/centos8s/Dockerfile
rename to bootstrap/generated-dists/rocky8/Dockerfile
index 3b5a681118f83df02ffcab05784347a3f453e26b..146a6977d870a1e67b1300c2f9a433141e7e070c 100644 (file)
@@ -3,7 +3,7 @@
 # See also bootstrap/config.py
 #
 
-FROM quay.io/centos/centos:stream8
+FROM docker.io/library/rockylinux:8
 
 # pass in with --build-arg while build
 ARG SHA1SUM
similarity index 92%
rename from bootstrap/generated-dists/centos8s/bootstrap.sh
rename to bootstrap/generated-dists/rocky8/bootstrap.sh
index 9e0aabbac288e100bc30f066b8abae2b016f16ff..4b2c62c66d9a5cfd8b92dbdc9035765264a757fa 100755 (executable)
@@ -7,9 +7,6 @@
 
 set -xueo pipefail
 
-sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
-sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
-
 yum update -y
 yum install -y dnf-plugins-core
 yum install -y epel-release
index bb0632e540d6eecdec76110ed9f71b84696031ba..e71a040595ba08acd75c4866a2e403951f8f6ded 100644 (file)
@@ -1 +1 @@
-d7e721bceae90834dfe04e8a9ba864a55d1c49e1
+d1ce7e10953d16253a34b8e58077fd32c1dbd59c