gitlab-ci: Update to openSUSE 15.3
authorAndreas Schneider <asn@samba.org>
Fri, 18 Mar 2022 15:29:43 +0000 (16:29 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 23 Mar 2022 11:33:33 +0000 (11:33 +0000)
This drops openSUSE 15.1 and 15.2 to save some CI resources.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
13 files changed:
.gitlab-ci-main.yml
bootstrap/.gitlab-ci.yml
bootstrap/config.py
bootstrap/generated-dists/Vagrantfile
bootstrap/generated-dists/opensuse151/bootstrap.sh [deleted file]
bootstrap/generated-dists/opensuse151/packages.yml [deleted file]
bootstrap/generated-dists/opensuse152/Dockerfile [deleted file]
bootstrap/generated-dists/opensuse152/locale.sh [deleted file]
bootstrap/generated-dists/opensuse153/Dockerfile [moved from bootstrap/generated-dists/opensuse151/Dockerfile with 93% similarity]
bootstrap/generated-dists/opensuse153/bootstrap.sh [moved from bootstrap/generated-dists/opensuse152/bootstrap.sh with 100% similarity]
bootstrap/generated-dists/opensuse153/locale.sh [moved from bootstrap/generated-dists/opensuse151/locale.sh with 100% similarity]
bootstrap/generated-dists/opensuse153/packages.yml [moved from bootstrap/generated-dists/opensuse152/packages.yml with 100% similarity]
bootstrap/sha1sum.txt

index 11b46ceb6f1e774652508498e8e4c810e71715bf..ec356f0fd555e11b8ae54e4237fe94baa574aeb8 100644 (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: 101efe433173bdb306063c6d91d5c991a858a9c9
+  SAMBA_CI_CONTAINER_TAG: d849801e805f8772b78251d07a28eb332c24660
   #
   # We use the ubuntu1804 image as default as
   # it matches what we have on sn-devel-184.
@@ -58,8 +58,7 @@ variables:
   SAMBA_CI_CONTAINER_IMAGE_debian9: debian9
   SAMBA_CI_CONTAINER_IMAGE_debian10: debian10
   SAMBA_CI_CONTAINER_IMAGE_debian11: debian11
-  SAMBA_CI_CONTAINER_IMAGE_opensuse151: opensuse151
-  SAMBA_CI_CONTAINER_IMAGE_opensuse152: opensuse152
+  SAMBA_CI_CONTAINER_IMAGE_opensuse153: opensuse153
   SAMBA_CI_CONTAINER_IMAGE_fedora35: fedora35
   SAMBA_CI_CONTAINER_IMAGE_f35mit120: f35mit120
   SAMBA_CI_CONTAINER_IMAGE_centos7: centos7
@@ -603,15 +602,10 @@ debian11-samba-o3:
   variables:
     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_debian11}
 
-opensuse151-samba-o3:
+opensuse153-samba-o3:
   extends: .samba-o3-template
   variables:
-    SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_opensuse151}
-
-opensuse152-samba-o3:
-  extends: .samba-o3-template
-  variables:
-    SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_opensuse152}
+    SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_opensuse153}
 
 centos7-samba-o3:
   extends: .samba-o3-template
index 1cf27b0c48687624757017226356b6ba403bba2c..815c6853d46f8326d2e0259c9e33e2eefe21ef81 100644 (file)
@@ -117,8 +117,5 @@ centos7:
     # We install a compat-gnutls34 package for GnuTLS >= 3.4.7
     PKG_CONFIG_PATH: /usr/lib64/compat-gnutls34/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig
 
-opensuse151:
-  extends: .build_image_template
-
-opensuse152:
+opensuse153:
   extends: .build_image_template
index 9196a5b0f6ea8d0320e4f573afc370908cf0b3c8..9e424cb137bc5edbfd6f33f8f4c39da93f269c71 100644 (file)
@@ -517,41 +517,9 @@ RPM_DISTS = {
             'libtracker-sparql-2.0-dev': '',  # only tracker 3.x is available
         }
     },
-    'opensuse151': {
-        'docker_image': 'opensuse/leap:15.1',
-        'vagrant_box': 'opensuse/openSUSE-15.1-x86_64',
-        'bootstrap': ZYPPER_BOOTSTRAP,
-        'replace': {
-            '@development-tools': '',
-            'dbus-devel': 'dbus-1-devel',
-            'docbook-style-xsl': 'docbook-xsl-stylesheets',
-            'glibc-common': 'glibc-locale',
-            'glibc-locale-source': 'glibc-i18ndata',
-            'glibc-langpack-en': '',
-            'jansson-devel': 'libjansson-devel',
-            'keyutils-libs-devel': 'keyutils-devel',
-            'krb5-workstation': 'krb5-client',
-            'python3-libsemanage': 'python2-semanage',
-            'openldap-devel': 'openldap2-devel',
-            'perl-Archive-Tar': 'perl-Archive-Tar-Wrapper',
-            'perl-JSON-Parse': 'perl-JSON-XS',
-            'perl-generators': '',
-            'perl-interpreter': '',
-            'perl-FindBin': '',
-            'procps-ng': 'procps',
-            'python3-dns': 'python3-dnspython',
-            'python3-markdown': 'python3-Markdown',
-            'quota-devel': '',
-            'glusterfs-api-devel': '',
-            'libtasn1-tools': '', # asn1Parser is part of libtasn1
-            'mingw64-gcc': '', # doesn't exist
-            'liburing-devel': '',   # not available
-            'mold': '',
-        }
-    },
-    'opensuse152': {
-        'docker_image': 'opensuse/leap:15.2',
-        'vagrant_box': 'opensuse/openSUSE-15.2-x86_64',
+    'opensuse153': {
+        'docker_image': 'opensuse/leap:15.3',
+        'vagrant_box': 'opensuse/openSUSE-15.3-x86_64',
         'bootstrap': ZYPPER_BOOTSTRAP,
         'replace': {
             '@development-tools': '',
index 832918d700716e04ee1c0e826677da14a2d4b62a..f4345676995ed8c4e6d11ef0731ffe87eb11eb27 100644 (file)
@@ -52,18 +52,11 @@ Vagrant.configure("2") do |config|
         v.vm.provision :shell, path: "fedora35/locale.sh"
     end
 
-    config.vm.define "opensuse151" do |v|
-        v.vm.box = "opensuse/openSUSE-15.1-x86_64"
-        v.vm.hostname = "opensuse151"
-        v.vm.provision :shell, path: "opensuse151/bootstrap.sh"
-        v.vm.provision :shell, path: "opensuse151/locale.sh"
-    end
-
-    config.vm.define "opensuse152" do |v|
-        v.vm.box = "opensuse/openSUSE-15.2-x86_64"
-        v.vm.hostname = "opensuse152"
-        v.vm.provision :shell, path: "opensuse152/bootstrap.sh"
-        v.vm.provision :shell, path: "opensuse152/locale.sh"
+    config.vm.define "opensuse153" do |v|
+        v.vm.box = "opensuse/openSUSE-15.3-x86_64"
+        v.vm.hostname = "opensuse153"
+        v.vm.provision :shell, path: "opensuse153/bootstrap.sh"
+        v.vm.provision :shell, path: "opensuse153/locale.sh"
     end
 
     config.vm.define "ubuntu1804" do |v|
diff --git a/bootstrap/generated-dists/opensuse151/bootstrap.sh b/bootstrap/generated-dists/opensuse151/bootstrap.sh
deleted file mode 100755 (executable)
index 02c8c5d..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/bin/bash
-
-#
-# This file is generated by 'bootstrap/template.py --render'
-# See also bootstrap/config.py
-#
-
-set -xueo pipefail
-
-zypper --non-interactive refresh
-zypper --non-interactive update
-zypper --non-interactive install \
-    --no-recommends \
-    system-user-nobody \
-    acl \
-    attr \
-    autoconf \
-    avahi-devel \
-    bind-utils \
-    binutils \
-    bison \
-    ccache \
-    chrpath \
-    cups-devel \
-    curl \
-    dbus-1-devel \
-    docbook-dtds \
-    docbook-xsl-stylesheets \
-    flex \
-    gawk \
-    gcc \
-    gdb \
-    git \
-    glib2-devel \
-    glibc-locale \
-    glusterfs-devel \
-    gnutls-devel \
-    gpgme-devel \
-    gzip \
-    hostname \
-    htop \
-    keyutils-devel \
-    krb5-client \
-    krb5-devel \
-    krb5-server \
-    lcov \
-    libacl-devel \
-    libarchive-devel \
-    libattr-devel \
-    libblkid-devel \
-    libbsd-devel \
-    libcap-devel \
-    libcephfs-devel \
-    libicu-devel \
-    libjansson-devel \
-    libpcap-devel \
-    libtasn1-devel \
-    libtirpc-devel \
-    libunwind-devel \
-    libuuid-devel \
-    libxslt \
-    lmdb \
-    lmdb-devel \
-    lsb-release \
-    make \
-    ncurses-devel \
-    openldap2-devel \
-    pam-devel \
-    patch \
-    perl \
-    perl-Archive-Tar-Wrapper \
-    perl-ExtUtils-MakeMaker \
-    perl-JSON \
-    perl-JSON-XS \
-    perl-Parse-Yapp \
-    perl-Test-Base \
-    pkgconfig \
-    popt-devel \
-    procps \
-    psmisc \
-    python2-semanage \
-    python3 \
-    python3-Markdown \
-    python3-cryptography \
-    python3-devel \
-    python3-dnspython \
-    python3-gpg \
-    python3-iso8601 \
-    python3-policycoreutils \
-    python3-pyasn1 \
-    python3-setproctitle \
-    readline-devel \
-    rng-tools \
-    rpcgen \
-    rpcsvc-proto-devel \
-    rsync \
-    sed \
-    sudo \
-    systemd-devel \
-    tar \
-    tracker-devel \
-    tree \
-    wget \
-    which \
-    xfsprogs-devel \
-    yum-utils \
-    zlib-devel
-
-zypper --non-interactive clean
-
-if [ -f /usr/lib/mit/bin/krb5-config ]; then
-    ln -sf /usr/lib/mit/bin/krb5-config /usr/bin/krb5-config
-fi
\ No newline at end of file
diff --git a/bootstrap/generated-dists/opensuse151/packages.yml b/bootstrap/generated-dists/opensuse151/packages.yml
deleted file mode 100644 (file)
index 843e4c5..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
----
-packages:
-  - acl
-  - attr
-  - autoconf
-  - avahi-devel
-  - bind-utils
-  - binutils
-  - bison
-  - ccache
-  - chrpath
-  - cups-devel
-  - curl
-  - dbus-1-devel
-  - docbook-dtds
-  - docbook-xsl-stylesheets
-  - flex
-  - gawk
-  - gcc
-  - gdb
-  - git
-  - glib2-devel
-  - glibc-locale
-  - glusterfs-devel
-  - gnutls-devel
-  - gpgme-devel
-  - gzip
-  - hostname
-  - htop
-  - keyutils-devel
-  - krb5-client
-  - krb5-devel
-  - krb5-server
-  - lcov
-  - libacl-devel
-  - libarchive-devel
-  - libattr-devel
-  - libblkid-devel
-  - libbsd-devel
-  - libcap-devel
-  - libcephfs-devel
-  - libicu-devel
-  - libjansson-devel
-  - libpcap-devel
-  - libtasn1-devel
-  - libtirpc-devel
-  - libunwind-devel
-  - libuuid-devel
-  - libxslt
-  - lmdb
-  - lmdb-devel
-  - lsb-release
-  - make
-  - ncurses-devel
-  - openldap2-devel
-  - pam-devel
-  - patch
-  - perl
-  - perl-Archive-Tar-Wrapper
-  - perl-ExtUtils-MakeMaker
-  - perl-JSON
-  - perl-JSON-XS
-  - perl-Parse-Yapp
-  - perl-Test-Base
-  - pkgconfig
-  - popt-devel
-  - procps
-  - psmisc
-  - python2-semanage
-  - python3
-  - python3-Markdown
-  - python3-cryptography
-  - python3-devel
-  - python3-dnspython
-  - python3-gpg
-  - python3-iso8601
-  - python3-policycoreutils
-  - python3-pyasn1
-  - python3-setproctitle
-  - readline-devel
-  - rng-tools
-  - rpcgen
-  - rpcsvc-proto-devel
-  - rsync
-  - sed
-  - sudo
-  - systemd-devel
-  - tar
-  - tracker-devel
-  - tree
-  - wget
-  - which
-  - xfsprogs-devel
-  - yum-utils
-  - zlib-devel
\ No newline at end of file
diff --git a/bootstrap/generated-dists/opensuse152/Dockerfile b/bootstrap/generated-dists/opensuse152/Dockerfile
deleted file mode 100644 (file)
index 65de943..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# This file is generated by 'bootstrap/template.py --render'
-# See also bootstrap/config.py
-#
-
-FROM opensuse/leap:15.2
-
-# 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=$(which ld); LD_GOLD=$(which ld.gold); test -x $LD_GOLD && 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=$(which ld); LD_MOLD=$(which ld.mold); test -x $LD_MOLD && 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
diff --git a/bootstrap/generated-dists/opensuse152/locale.sh b/bootstrap/generated-dists/opensuse152/locale.sh
deleted file mode 100755 (executable)
index cc64e18..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/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
similarity index 93%
rename from bootstrap/generated-dists/opensuse151/Dockerfile
rename to bootstrap/generated-dists/opensuse153/Dockerfile
index fa3745b5802ba4ff4a80e5e8e535510a238657ea..b977f6444488bc35a0ab097f35f8dfd6144c433a 100644 (file)
@@ -3,7 +3,7 @@
 # See also bootstrap/config.py
 #
 
-FROM opensuse/leap:15.1
+FROM opensuse/leap:15.3
 
 # pass in with --build-arg while build
 ARG SHA1SUM
index 99fbf10f03e81df2f063003d3212f8ca3c0fc4b0..ad980c8dbb69b27757a81335a74cdaaa75911f4d 100644 (file)
@@ -1 +1 @@
-101efe433173bdb306063c6d91d5c991a858a9c9
+d849801e805f8772b78251d07a28eb332c246606