1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

bootstrap: Migrate to Rocky8

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
This commit is contained in:
David Mulder 2024-08-27 09:32:43 -06:00 committed by Martin Schwenke
parent fab7416a3d
commit 8ab5a032d7
9 changed files with 19 additions and 25 deletions

View 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

View File

@ -106,7 +106,7 @@ debian11-32bit:
variables:
SAMBA_CI_TEST_JOB: "samba-32bit"
centos8s:
rocky8:
extends: .build_image_template
centos9s:

View 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

View 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"

View 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

View File

@ -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

View File

@ -1 +1 @@
d7e721bceae90834dfe04e8a9ba864a55d1c49e1
d1ce7e10953d16253a34b8e58077fd32c1dbd59c