]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ceph-debug-docker: add debuginfod for ubuntu 60010/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 27 Sep 2024 00:08:54 +0000 (20:08 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 27 Sep 2024 00:20:24 +0000 (20:20 -0400)
This apparently lets us download debug symbols by build id in the core file.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/script/ceph-debug-docker.sh

index b21118ebd81e91ccb7a214dcf5cadfcf99f62ed6..c3edc5df76d4b854884103754688399ad4a10e4c 100755 (executable)
@@ -117,13 +117,15 @@ FROM ${env}
 
 WORKDIR /root
 RUN apt-get update --yes --quiet && \
-    apt-get install --yes --quiet screen gdb software-properties-common apt-transport-https curl
+    apt-get install --yes --quiet screen gdb software-properties-common apt-transport-https curl debuginfod ubuntu-dbgsym-keyring
 COPY cephdev.asc cephdev.asc
 RUN apt-key add cephdev.asc && \
     curl -L $repo_url | tee /etc/apt/sources.list.d/ceph_dev.list && \
     cat /etc/apt/sources.list.d/ceph_dev.list|sed -e 's/^deb/deb-src/' >>/etc/apt/sources.list.d/ceph_dev.list && \
     apt-get update --yes && \
-    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
+    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 ; \
+    printf 'set debuginfod enabled on\n' | tee -a ~/.gdbinit
+ENV DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"
 EOF
         time run $SUDO docker build $CACHE --tag "$tag" .
     else