1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

bootstrap: Migrate to CentOS8 Stream

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Feb  4 21:11:40 UTC 2022 on sn-devel-184
This commit is contained in:
Andreas Schneider 2022-02-03 15:43:54 +01:00 committed by Andreas Schneider
parent b2c301ad3b
commit 136ec5bc01
9 changed files with 19 additions and 39 deletions

View File

@ -42,7 +42,7 @@ variables:
# Set this to the contents of bootstrap/sha1sum.txt
# which is generated by bootstrap/template.py --render
#
SAMBA_CI_CONTAINER_TAG: 3179d5d22844628ed6b3f4236f90b859315770b4
SAMBA_CI_CONTAINER_TAG: 751901cf8356d45e7027b23a60e7a8179e014b98
#
# We use the ubuntu1804 image as default as
# it matches what we have on sn-devel-184.
@ -64,7 +64,7 @@ variables:
SAMBA_CI_CONTAINER_IMAGE_fedora34: fedora34
SAMBA_CI_CONTAINER_IMAGE_fedora35: fedora35
SAMBA_CI_CONTAINER_IMAGE_centos7: centos7
SAMBA_CI_CONTAINER_IMAGE_centos8: centos8
SAMBA_CI_CONTAINER_IMAGE_centos8s: centos8s
include:
# The image creation details are specified in a separate file
@ -594,10 +594,10 @@ centos7-samba-o3:
# We need a newer GnuTLS version on CentOS7
PKG_CONFIG_PATH: "/usr/lib64/compat-gnutls37/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig"
centos8-samba-o3:
centos8s-samba-o3:
extends: .samba-o3-template
variables:
SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_centos8}
SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_centos8s}
fedora34-samba-o3:
extends: .samba-o3-template

View File

@ -106,7 +106,7 @@ fedora34:
fedora35:
extends: .build_image_template
centos8:
centos8s:
extends: .build_image_template
centos7:

View File

@ -230,28 +230,18 @@ if [ ! -f /usr/bin/python3 ]; then
fi
"""
CENTOS8_YUM_BOOTSTRAP = r"""
CENTOS8S_YUM_BOOTSTRAP = r"""
#!/bin/bash
{GENERATED_MARKER}
set -xueo pipefail
# CentOS8 is EOL
sed -i -e "s|^mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sed -i -e "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
yum -v repolist all
yum config-manager --set-enabled PowerTools -y || \
yum config-manager --set-enabled powertools -y || \
yum config-manager --set-enabled powertools -y
yum config-manager --set-enabled Devel -y || \
yum config-manager --set-enabled devel -y
# CentOS8 is EOL
sed -i -e "s|^mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
yum update -y
@ -469,10 +459,10 @@ RPM_DISTS = {
'tracker-devel': '', # do not install
}
},
'centos8': {
'docker_image': 'centos:8',
'vagrant_box': 'centos/8',
'bootstrap': CENTOS8_YUM_BOOTSTRAP,
'centos8s': {
'docker_image': 'quay.io/centos/centos:stream8',
'vagrant_box': 'centos/stream8',
'bootstrap': CENTOS8S_YUM_BOOTSTRAP,
'replace': {
'lsb-release': 'redhat-lsb',
'@development-tools': '"@Development Tools"', # add quotes

View File

@ -17,11 +17,11 @@ Vagrant.configure("2") do |config|
v.vm.provision :shell, path: "centos7/locale.sh"
end
config.vm.define "centos8" do |v|
v.vm.box = "centos/8"
v.vm.hostname = "centos8"
v.vm.provision :shell, path: "centos8/bootstrap.sh"
v.vm.provision :shell, path: "centos8/locale.sh"
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 "debian10" do |v|

View File

@ -3,7 +3,7 @@
# See also bootstrap/config.py
#
FROM centos:8
FROM quay.io/centos/centos:stream8
# pass in with --build-arg while build
ARG SHA1SUM

View File

@ -7,23 +7,13 @@
set -xueo pipefail
# CentOS8 is EOL
sed -i -e "s|^mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sed -i -e "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
yum -v repolist all
yum config-manager --set-enabled PowerTools -y || \
yum config-manager --set-enabled powertools -y || \
yum config-manager --set-enabled powertools -y
yum config-manager --set-enabled Devel -y || \
yum config-manager --set-enabled devel -y
# CentOS8 is EOL
sed -i -e "s|^mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
yum update -y

View File

@ -1 +1 @@
3179d5d22844628ed6b3f4236f90b859315770b4
751901cf8356d45e7027b23a60e7a8179e014b98