From: David Galloway Date: Mon, 23 Mar 2026 15:05:38 +0000 (-0400) Subject: container/build.sh: FROM_IMAGE=rockylinux-10 default for >=tentacle X-Git-Tag: v21.0.0~8^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e0eaf5628595a7fd780b0e1481005fc39659783;p=ceph.git 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 --- 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