From 5e0eaf5628595a7fd780b0e1481005fc39659783 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 23 Mar 2026 11:05:38 -0400 Subject: [PATCH] container/build.sh: FROM_IMAGE=rockylinux-10 default for >=tentacle We build centos9 and rocky10 packages and containers by default now for wip, main, and tentacle branches as of https://github.com/ceph/ceph-build/pull/2557. Starting with tentacle, we want a `podman pull quay.ceph.io/ceph-ci/ceph:tentacle` or `podman pull quay.ceph.io/ceph-ci/ceph:$SHA1` to get the container with Rocky 10 as the Base OS image, or FROM_IMAGE. Fixes: https://tracker.ceph.com/issues/75673 Signed-off-by: David Galloway --- container/build.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/container/build.sh b/container/build.sh index 438926054d26..40ec4a4d3cff 100755 --- a/container/build.sh +++ b/container/build.sh @@ -173,12 +173,20 @@ if [[ ${CI_CONTAINER} == "true" ]] ; then branch_repo_tag=${repopath}:${BRANCH} sha1_repo_tag=${repopath}:${CEPH_SHA1} fi - # while we have more than just centos9 containers: - # anything that's not gets suffixed with its fromtag - # for the branch and sha1 tags (for example, -rocky-10). - # The default can change when it needs to. - - if [[ "${fromtag}" != "centos-stream9" ]] ; then + # The container build tooling is capable of using CentOS 9 and Rocky 10 + # as the FROM_IMAGE base container images. + # In Tentacle, the default/preferred FROM_IMAGE changed to rockylinux-10. + # So we want `podman pull quay.ceph.io/ceph-ci/ceph:tentacle` to get the + # FROM_IMAGE=rockylinux-10 container, NOT the CentOS 9 one. + # And vice versa for ceph:squid. + + if [[ "$BRANCH" == "reef" || "$BRANCH" == "squid" ]]; then + default_fromtag="centos-stream9" + else + default_fromtag="rockylinux-10" + fi + # We set fromtag above by extracting FROM_IMAGE from `podman inspect` + if [[ "${fromtag}" != "${default_fromtag}" ]] ; then branch_repo_tag=${repopath}:${BRANCH}-${fromtag} sha1_repo_tag=${repopath}:${CEPH_SHA1}-${fromtag} fi -- 2.47.3