From a673a8cfdef4a8a0b756a57140835673b74c01b4 Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Tue, 13 Feb 2024 12:58:45 +0100 Subject: [PATCH] add debug tools --- Dockerfile | 2 +- tools/csi-deps.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b6995d27..354cfeeb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -130,7 +130,7 @@ CMD ["sh", "-c", "/bin/barbican-kms-plugin --socketpath ${socketpath} --cloud-co # all magic happens in tools/csi-deps.sh FROM --platform=${TARGETPLATFORM} ${DEBIAN_IMAGE} as cinder-csi-plugin-utils -RUN clean-install bash rsync mount udev btrfs-progs e2fsprogs xfsprogs util-linux libcryptsetup12 libcryptsetup-dev +RUN clean-install bash rsync mount udev btrfs-progs e2fsprogs xfsprogs util-linux libcryptsetup12 libcryptsetup-dev strace COPY tools/csi-deps.sh /tools/csi-deps.sh RUN /tools/csi-deps.sh diff --git a/tools/csi-deps.sh b/tools/csi-deps.sh index 74c4ad41..4af2ffac 100755 --- a/tools/csi-deps.sh +++ b/tools/csi-deps.sh @@ -113,3 +113,8 @@ cp -Lv /usr/lib/x86_64-linux-gnu/libjson-c.so* ${DEST}/usr/lib/x86_64-linux-gnu/ cp -Lv /usr/lib/x86_64-linux-gnu/libblkid.so* ${DEST}/usr/lib/x86_64-linux-gnu/ cp -Lv /usr/lib/x86_64-linux-gnu/libudev.so* ${DEST}/usr/lib/x86_64-linux-gnu/ cp -Lv /usr/lib/x86_64-linux-gnu/libpcre2-8.so* ${DEST}/usr/lib/x86_64-linux-gnu/ + +# debug tools +cp /bin/sh ${DEST}/bin/ +cp /usr/bin/strace ${DEST}/usr/bin/ +copy_deps /usr/bin/strace