2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-10-20 06:35:33 +00:00
Files
confluent/.github/scripts/build-utils.sh
T
Markus Hilger 6c48cb4fad Build and publish nightly packages
Build the rpms for EL9, EL10 and SUSE 16 and the debs for Ubuntu noble
and resolute, each for x86_64 and aarch64, install every set on a clean
container and publish them as a rolling nightly pre-release. Each
release asset is one target's bundle: all of its packages, repository
metadata and an INSTALL.txt.

Besides the in-tree components this packages confluent_ipxe from the
iPXE release roms and the browserfs and vinz helpers from their own
repositories. The osdeploy utils are built where buildrpm builds them,
el7 for the x86_64 el8bin set, so they still run on the oldest targets.
Genesis is left out for now.

Noarch packages are built once, in the x86_64 legs, and the aarch64 legs
build only what is architecture specific. Build tools are installed
without weak dependencies, while the smoke tests keep the distribution
defaults, since they stand in for a user's install.

Scheduled runs skip the build when neither confluent nor the helper
repositories moved since the last published nightly. Pull requests that
touch the packaging build and test without publishing.
2026-10-15 20:12:49 +02:00

39 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# Build the confluent_osdeploy utils inside a distro container, standing in for
# the el7build/el8builder/el9build podman images confluent_osdeploy/buildrpm
# uses. The el8bin set is linked against the oldest glibc any target runs
# (el7 on x86_64, el8 on aarch64), so it must be built on that distro.
#
# Usage: build-utils.sh <outdir> (run from the repository root)
set -e
OUT=$1
[ -n "$OUT" ] || { echo "usage: $0 <outdir>" >&2; exit 1; }
. /etc/os-release
case "$VERSION_ID" in
7*)
# CentOS 7 is EOL: its mirrors are gone, only the vault remains
sed -i -e 's/^mirrorlist=/#mirrorlist=/' \
-e 's|^#\?baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|' \
/etc/yum.repos.d/CentOS-*.repo
yum -y install gcc make binutils libcurl-devel fuse-devel
;;
8*)
dnf -y --setopt=install_weak_deps=False install dnf-plugins-core
dnf config-manager --set-enabled powertools
dnf -y --setopt=install_weak_deps=False install gcc make binutils libcurl-devel fuse-devel libxcrypt-devel
;;
*)
dnf -y --setopt=install_weak_deps=False install dnf-plugins-core
dnf config-manager --set-enabled crb
dnf -y --setopt=install_weak_deps=False install gcc make binutils libcurl-devel fuse-devel libxcrypt-devel
;;
esac
make -C confluent_osdeploy/utils
mkdir -p "$OUT"
cd confluent_osdeploy/utils
cp confluent_imginfo copernicus clortho autocons start_root urlmount "$OUT"/
make clean