From: Patrick Donnelly Date: Wed, 23 Aug 2023 13:59:16 +0000 (-0400) Subject: script: update ceph-debug-docker for centos 9.stream X-Git-Tag: v19.0.0~309^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=07385f854b29fd66af176f798189c9240900e70e;p=ceph.git script: update ceph-debug-docker for centos 9.stream Signed-off-by: Patrick Donnelly --- diff --git a/src/script/ceph-debug-docker.sh b/src/script/ceph-debug-docker.sh index 22afec8a0a4..76d3b126153 100755 --- a/src/script/ceph-debug-docker.sh +++ b/src/script/ceph-debug-docker.sh @@ -72,10 +72,10 @@ function main { printf "branch: %s\nsha1: %s\n" "$branch" "$sha" if [ -z "$2" ]; then - printf "specify the build environment [default \"centos:8\"]: " + printf "specify the build environment [default \"centos:stream9\"]: " read env if [ -z "$env" ]; then - env=centos:8 + env=centos:stream9 fi else env="$2" @@ -95,7 +95,11 @@ function main { T=$(mktemp -d) pushd "$T" case "$env" in - centos:stream) + centos:stream|centos:stream9) + env=centos:stream9 + distro="centos/9" + ;; + centos:stream8) distro="centos/8" ;; *) @@ -122,45 +126,53 @@ RUN apt-key add cephdev.asc && \ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get --assume-yes -q --no-install-recommends install -o Dpkg::Options::=--force-confnew --allow-unauthenticated ceph ceph-osd-dbg ceph-mds-dbg ceph-mgr-dbg ceph-mon-dbg ceph-common-dbg ceph-fuse-dbg ceph-test-dbg radosgw-dbg python3-cephfs python3-rados EOF time run $SUDO docker build $CACHE --tag "$tag" . - else # try RHEL flavor - case "$env" in - centos:7) - python_bindings="python36-rados python36-cephfs" - base_debuginfo="" - ceph_debuginfo="ceph-debuginfo" - debuginfo=/etc/yum.repos.d/CentOS-Linux-Debuginfo.repo - ;; - centos:8) - python_bindings="python3-rados python3-cephfs" - base_debuginfo="glibc-debuginfo" - ceph_debuginfo="ceph-base-debuginfo" - debuginfo=/etc/yum.repos.d/CentOS-Linux-Debuginfo.repo - base_url="s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" - ;; - centos:stream) - python_bindings="python3-rados python3-cephfs" - base_debuginfo="glibc-debuginfo" - ceph_debuginfo="ceph-base-debuginfo" - debuginfo=/etc/yum.repos.d/CentOS-Stream-Debuginfo.repo - ;; - esac - if [ "${FLAVOR}" = "crimson" ]; then - ceph_debuginfo+=" ceph-crimson-osd-debuginfo ceph-crimson-osd" - fi - cat > Dockerfile < Dockerfile time run $SUDO docker build $CACHE --tag "$tag" . fi popd