Skip to content

Commit 4b2e841

Browse files
committed
script/ceph-debug-docker: add debuginfod for ubuntu
This apparently lets us download debug symbols by build id in the core file. Signed-off-by: Patrick Donnelly <[email protected]>
1 parent dccebc7 commit 4b2e841

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/script/ceph-debug-docker.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@ FROM ${env}
117117
118118
WORKDIR /root
119119
RUN apt-get update --yes --quiet && \
120-
apt-get install --yes --quiet screen gdb software-properties-common apt-transport-https curl
120+
apt-get install --yes --quiet screen gdb software-properties-common apt-transport-https curl debuginfod ubuntu-dbgsym-keyring
121121
COPY cephdev.asc cephdev.asc
122122
RUN apt-key add cephdev.asc && \
123123
curl -L $repo_url | tee /etc/apt/sources.list.d/ceph_dev.list && \
124124
cat /etc/apt/sources.list.d/ceph_dev.list|sed -e 's/^deb/deb-src/' >>/etc/apt/sources.list.d/ceph_dev.list && \
125125
apt-get update --yes && \
126-
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
126+
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 ; \
127+
printf 'set debuginfod enabled on\n' | tee -a ~/.gdbinit
128+
ENV DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"
127129
EOF
128130
time run $SUDO docker build $CACHE --tag "$tag" .
129131
else

0 commit comments

Comments
 (0)