# Set this to the contents of bootstrap/sha1sum.txt
# which is generated by bootstrap/template.py --render
#
- SAMBA_CI_CONTAINER_TAG: 790c229c42a67336099420d137fa9dc9974a133a
+ SAMBA_CI_CONTAINER_TAG: cfddaa8d36c3f512827bd96fe05c30f7f8337f4b
#
# We use the ubuntu2204 image as default as
# it matches what we have on atb-devel-224
SAMBA_CI_CONTAINER_IMAGE_ubuntu2204: ubuntu2204
SAMBA_CI_CONTAINER_IMAGE_debian11: debian11
SAMBA_CI_CONTAINER_IMAGE_opensuse154: opensuse154
- SAMBA_CI_CONTAINER_IMAGE_fedora37: fedora37
- SAMBA_CI_CONTAINER_IMAGE_f37mit120: f37mit120
+ SAMBA_CI_CONTAINER_IMAGE_fedora38: fedora38
SAMBA_CI_CONTAINER_IMAGE_centos7: centos7
SAMBA_CI_CONTAINER_IMAGE_centos8s: centos8s
samba-mit-build:
extends: .shared_template_build_only
variables:
- SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora37}
- stage: build_first
-
-samba-mit120-build:
- extends: .shared_template_build_only
- variables:
- AUTOBUILD_JOB_NAME: samba-mit-build
- SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_f37mit120}
+ SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora38}
stage: build_first
.needs_samba-mit-build:
extends: .shared_template_test_only
variables:
- SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora37}
+ SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora38}
needs:
- job: samba-mit-build
artifacts: true
- job: samba-shellcheck
-.needs_samba-mit120-build:
- extends: .shared_template_test_only
- variables:
- SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_f37mit120}
- needs:
- - job: samba-mit120-build
- artifacts: true
-
samba-h5l-build:
extends: .shared_template_build_only
samba-mitkrb5:
extends: .shared_template
variables:
- SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora37}
+ SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora38}
samba-minimal-smbd:
extends: .shared_template
samba-fips:
extends: .shared_template
variables:
- SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora37}
+ SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora38}
samba-shellcheck:
extends: .shared_template
needs:
variables:
- SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora37}
+ SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora38}
stage: build_first
.private_test_only:
- .needs_samba-mit-build
- .private_test_only
-.needs_samba-mit120-build-private:
- extends:
- - .needs_samba-mit120-build
- - .private_test_only
-
.needs_samba-h5l-build-private:
extends:
- .needs_samba-h5l-build
samba-addc-mit-1:
extends: .needs_samba-mit-build-private
-samba-addc-mit120:
- extends: .needs_samba-mit120-build-private
- variables:
- AUTOBUILD_JOB_NAME: samba-addc-mit-1
-
samba-no-opath1:
extends: .needs_samba-no-opath-build-private
variables:
SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_centos8s}
-fedora37-samba-o3:
+fedora38-samba-o3:
extends: .samba-o3-template
variables:
- SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora37}
+ SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora38}
#
# Keep the samba-o3 sections at the end ...
debian11:
extends: .build_image_template
-fedora37:
- extends: .build_image_template
-
-f37mit120:
+fedora38:
extends: .build_image_template
centos8s:
('', 'mold'),
('', 'ShellCheck'),
('', 'shfmt'),
+ ('', 'crypto-policies-scripts'),
('python3', 'python3'),
('python3-cryptography', 'python3-cryptography'), # for krb5 tests
{pkgs}
dnf clean all
+
+update-crypto-policies --set DEFAULT:AD-SUPPORT
"""
DNF_BOOTSTRAP_MIT = r"""
'shfmt': '',
}
},
- 'fedora37': {
- 'docker_image': 'quay.io/fedora/fedora:37',
- 'vagrant_box': 'fedora/37-cloud-base',
+ 'fedora38': {
+ 'docker_image': 'quay.io/fedora/fedora:38',
+ 'vagrant_box': 'fedora/38-cloud-base',
'bootstrap': DNF_BOOTSTRAP,
'replace': {
'lsb-release': 'redhat-lsb',
'libtracker-sparql-2.0-dev': '', # only tracker 3.x is available
}
},
- 'f37mit120': {
- 'docker_image': 'quay.io/fedora/fedora:37',
- 'vagrant_box': 'fedora/37-cloud-base',
- 'bootstrap': DNF_BOOTSTRAP_MIT,
- 'replace': {
- 'lsb-release': 'redhat-lsb',
- 'perl-FindBin': '',
- 'python3-iso8601': 'python3-dateutil',
- 'libtracker-sparql-2.0-dev': '', # only tracker 3.x is available
- }
- },
'opensuse154': {
'docker_image': 'opensuse/leap:15.4',
'vagrant_box': 'opensuse/openSUSE-15.4-x86_64',
v.vm.provision :shell, path: "debian11/locale.sh"
end
- config.vm.define "f37mit120" do |v|
- v.vm.box = "fedora/37-cloud-base"
- v.vm.hostname = "f37mit120"
- v.vm.provision :shell, path: "f37mit120/bootstrap.sh"
- v.vm.provision :shell, path: "f37mit120/locale.sh"
- end
-
- config.vm.define "fedora37" do |v|
- v.vm.box = "fedora/37-cloud-base"
- v.vm.hostname = "fedora37"
- v.vm.provision :shell, path: "fedora37/bootstrap.sh"
- v.vm.provision :shell, path: "fedora37/locale.sh"
+ config.vm.define "fedora38" do |v|
+ v.vm.box = "fedora/38-cloud-base"
+ v.vm.hostname = "fedora38"
+ v.vm.provision :shell, path: "fedora38/bootstrap.sh"
+ v.vm.provision :shell, path: "fedora38/locale.sh"
end
config.vm.define "opensuse154" do |v|
ccache \
chrpath \
compat-gnutls37-devel \
+ crypto-policies-scripts \
cups-devel \
curl \
dbus-devel \
- ccache
- chrpath
- compat-gnutls37-devel
+ - crypto-policies-scripts
- cups-devel
- curl
- dbus-devel
bison \
ccache \
chrpath \
+ crypto-policies-scripts \
cups-devel \
curl \
dbus-devel \
- bison
- ccache
- chrpath
+ - crypto-policies-scripts
- cups-devel
- curl
- dbus-devel
--- /dev/null
+#
+# This file is generated by 'bootstrap/template.py --render'
+# See also bootstrap/config.py
+#
+
+FROM quay.io/fedora/fedora:38
+
+# pass in with --build-arg while build
+ARG SHA1SUM
+RUN [ -n $SHA1SUM ] && echo $SHA1SUM > /sha1sum.txt
+
+ADD *.sh /tmp/
+# need root permission, do it before USER samba
+RUN /tmp/bootstrap.sh && /tmp/locale.sh
+
+# if ld.gold exists, force link it to ld
+RUN set -x; ! LD_GOLD=$(which ld.gold) || { LD=$(which ld) && ln -sf $LD_GOLD $LD && test -x $LD && echo "$LD is now $LD_GOLD"; }
+# if ld.mold exists, force link it to ld (prefer mold over gold! ;-)
+RUN set -x; ! LD_MOLD=$(which ld.mold) || { LD=$(which ld) && ln -sf $LD_MOLD $LD && test -x $LD && echo "$LD is now $LD_MOLD"; }
+
+# make test can not work with root, so we have to create a new user
+RUN useradd -m -U -s /bin/bash samba && \
+ mkdir -p /etc/sudoers.d && \
+ echo "samba ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/samba
+
+USER samba
+WORKDIR /home/samba
+# samba tests rely on this
+ENV USER=samba LC_ALL=en_US.utf8 LANG=en_US.utf8
\ No newline at end of file
--- /dev/null
+#!/bin/bash
+
+#
+# This file is generated by 'bootstrap/template.py --render'
+# See also bootstrap/config.py
+#
+
+set -xueo pipefail
+
+dnf update -y
+
+dnf install -y \
+ --setopt=install_weak_deps=False \
+ @development-tools \
+ ShellCheck \
+ acl \
+ attr \
+ autoconf \
+ avahi-devel \
+ bind-utils \
+ binutils \
+ bison \
+ ccache \
+ chrpath \
+ crypto-policies-scripts \
+ cups-devel \
+ curl \
+ dbus-devel \
+ docbook-dtds \
+ docbook-style-xsl \
+ flex \
+ gawk \
+ gcc \
+ gdb \
+ git \
+ glib2-devel \
+ glibc-common \
+ glibc-langpack-en \
+ glusterfs-api-devel \
+ glusterfs-devel \
+ gnutls-devel \
+ gpgme-devel \
+ gzip \
+ hostname \
+ htop \
+ jansson-devel \
+ jq \
+ keyutils-libs-devel \
+ krb5-devel \
+ krb5-server \
+ krb5-workstation \
+ lcov \
+ libacl-devel \
+ libarchive-devel \
+ libattr-devel \
+ libblkid-devel \
+ libbsd-devel \
+ libcap-devel \
+ libcephfs-devel \
+ libicu-devel \
+ libpcap-devel \
+ libtasn1-devel \
+ libtasn1-tools \
+ libtirpc-devel \
+ libunwind-devel \
+ liburing-devel \
+ libuuid-devel \
+ libxslt \
+ lmdb \
+ lmdb-devel \
+ make \
+ mingw64-gcc \
+ mold \
+ ncurses-devel \
+ openldap-devel \
+ pam-devel \
+ patch \
+ perl \
+ perl-Archive-Tar \
+ perl-ExtUtils-MakeMaker \
+ perl-JSON \
+ perl-JSON-Parse \
+ perl-Parse-Yapp \
+ perl-Test-Base \
+ perl-generators \
+ perl-interpreter \
+ pkgconfig \
+ popt-devel \
+ procps-ng \
+ psmisc \
+ python3 \
+ python3-cryptography \
+ python3-dateutil \
+ python3-devel \
+ python3-dns \
+ python3-gpg \
+ python3-libsemanage \
+ python3-markdown \
+ python3-policycoreutils \
+ python3-pyasn1 \
+ python3-requests \
+ python3-setproctitle \
+ quota-devel \
+ readline-devel \
+ redhat-lsb \
+ rng-tools \
+ rpcgen \
+ rpcsvc-proto-devel \
+ rsync \
+ sed \
+ shfmt \
+ sudo \
+ systemd-devel \
+ tar \
+ tracker-devel \
+ tree \
+ wget \
+ which \
+ xfsprogs-devel \
+ xz \
+ yum-utils \
+ zlib-devel
+
+dnf clean all
+
+update-crypto-policies --set DEFAULT:AD-SUPPORT
\ No newline at end of file
--- /dev/null
+#!/bin/bash
+
+#
+# This file is generated by 'bootstrap/template.py --render'
+# See also bootstrap/config.py
+#
+
+set -xueo pipefail
+
+# refer to /usr/share/i18n/locales
+INPUTFILE=en_US
+# refer to /usr/share/i18n/charmaps
+CHARMAP=UTF-8
+# locale to generate in /usr/lib/locale
+# glibc/localedef will normalize UTF-8 to utf8, follow the naming style
+LOCALE=$INPUTFILE.utf8
+
+# if locale is already correct, exit
+( locale | grep LC_ALL | grep -i $LOCALE ) && exit 0
+
+# if locale not available, generate locale into /usr/lib/locale
+if ! ( locale --all-locales | grep -i $LOCALE )
+then
+ # no-archive means create its own dir
+ localedef --inputfile $INPUTFILE --charmap $CHARMAP --no-archive $LOCALE
+fi
+
+# update locale conf and global env file
+# set both LC_ALL and LANG for safe
+
+# update conf for Debian family
+FILE=/etc/default/locale
+if [ -f $FILE ]
+then
+ echo LC_ALL="$LOCALE" > $FILE
+ echo LANG="$LOCALE" >> $FILE
+fi
+
+# update conf for RedHat family
+FILE=/etc/locale.conf
+if [ -f $FILE ]
+then
+ # LC_ALL is not valid in this file, set LANG only
+ echo LANG="$LOCALE" > $FILE
+fi
+
+# update global env file
+FILE=/etc/environment
+if [ -f $FILE ]
+then
+ # append LC_ALL if not exist
+ grep LC_ALL $FILE || echo LC_ALL="$LOCALE" >> $FILE
+ # append LANG if not exist
+ grep LANG $FILE || echo LANG="$LOCALE" >> $FILE
+fi
\ No newline at end of file
--- /dev/null
+---
+packages:
+ - @development-tools
+ - ShellCheck
+ - acl
+ - attr
+ - autoconf
+ - avahi-devel
+ - bind-utils
+ - binutils
+ - bison
+ - ccache
+ - chrpath
+ - crypto-policies-scripts
+ - cups-devel
+ - curl
+ - dbus-devel
+ - docbook-dtds
+ - docbook-style-xsl
+ - flex
+ - gawk
+ - gcc
+ - gdb
+ - git
+ - glib2-devel
+ - glibc-common
+ - glibc-langpack-en
+ - glusterfs-api-devel
+ - glusterfs-devel
+ - gnutls-devel
+ - gpgme-devel
+ - gzip
+ - hostname
+ - htop
+ - jansson-devel
+ - jq
+ - keyutils-libs-devel
+ - krb5-devel
+ - krb5-server
+ - krb5-workstation
+ - lcov
+ - libacl-devel
+ - libarchive-devel
+ - libattr-devel
+ - libblkid-devel
+ - libbsd-devel
+ - libcap-devel
+ - libcephfs-devel
+ - libicu-devel
+ - libpcap-devel
+ - libtasn1-devel
+ - libtasn1-tools
+ - libtirpc-devel
+ - libunwind-devel
+ - liburing-devel
+ - libuuid-devel
+ - libxslt
+ - lmdb
+ - lmdb-devel
+ - make
+ - mingw64-gcc
+ - mold
+ - ncurses-devel
+ - openldap-devel
+ - pam-devel
+ - patch
+ - perl
+ - perl-Archive-Tar
+ - perl-ExtUtils-MakeMaker
+ - perl-JSON
+ - perl-JSON-Parse
+ - perl-Parse-Yapp
+ - perl-Test-Base
+ - perl-generators
+ - perl-interpreter
+ - pkgconfig
+ - popt-devel
+ - procps-ng
+ - psmisc
+ - python3
+ - python3-cryptography
+ - python3-dateutil
+ - python3-devel
+ - python3-dns
+ - python3-gpg
+ - python3-libsemanage
+ - python3-markdown
+ - python3-policycoreutils
+ - python3-pyasn1
+ - python3-requests
+ - python3-setproctitle
+ - quota-devel
+ - readline-devel
+ - redhat-lsb
+ - rng-tools
+ - rpcgen
+ - rpcsvc-proto-devel
+ - rsync
+ - sed
+ - shfmt
+ - sudo
+ - systemd-devel
+ - tar
+ - tracker-devel
+ - tree
+ - wget
+ - which
+ - xfsprogs-devel
+ - xz
+ - yum-utils
+ - zlib-devel
\ No newline at end of file
bison \
ccache \
chrpath \
+ crypto-policies-scripts \
cups-devel \
curl \
dbus-1-devel \
- bison
- ccache
- chrpath
+ - crypto-policies-scripts
- cups-devel
- curl
- dbus-1-devel
-790c229c42a67336099420d137fa9dc9974a133a
+cfddaa8d36c3f512827bd96fe05c30f7f8337f4b