]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
script: enable centos debuginfo repo for debugging
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 4 Jun 2021 16:32:52 +0000 (09:32 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 4 Jun 2021 16:32:52 +0000 (09:32 -0700)
So we can fetch e.g. the sqlite debuginfo packages.

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

index 7941cd46844bb1af7c392a1962842270b61a0a34..9bdf0df611a2ee6cb32afac2038087fe5861e04f 100755 (executable)
@@ -110,10 +110,12 @@ EOF
             centos:7)
                 python_bindings="python36-rados python36-cephfs"
                 ceph_debuginfo="ceph-debuginfo"
+                debuginfo=/etc/yum.repos.d/CentOS-Linux-Debuginfo.repo
                 ;;
             centos:8)
                 python_bindings="python3-rados python3-cephfs"
                 ceph_debuginfo="ceph-base-debuginfo"
+                debuginfo=/etc/yum.repos.d/CentOS-Linux-Debuginfo.repo
                 ;;
         esac
         if [ "${FLAVOR}" = "crimson" ]; then
@@ -123,7 +125,8 @@ EOF
 FROM ${env}
 
 WORKDIR /root
-RUN yum update -y && \
+RUN sed -i 's/enabled=0/enabled=1/' ${debuginfo} && \
+    yum update -y && \
     yum install -y tmux epel-release wget psmisc ca-certificates gdb
 RUN wget -O /etc/yum.repos.d/ceph-dev.repo $repo_url && \
     yum clean all && \