From c5c15c15d12697aad3306a21631173a370eefa3e Mon Sep 17 00:00:00 2001 From: bobz965 Date: Wed, 14 Aug 2024 12:46:10 +0800 Subject: [PATCH] simplicify if debug Signed-off-by: bobz965 --- dist/images/Dockerfile.base | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dist/images/Dockerfile.base b/dist/images/Dockerfile.base index 0eb57a74252..5f808bac4a2 100644 --- a/dist/images/Dockerfile.base +++ b/dist/images/Dockerfile.base @@ -148,10 +148,7 @@ RUN --mount=type=bind,target=/packages,from=ovs-builder,source=/packages \ if [ "${DEBUG}" != "true" ]; then \ setcap CAP_NET_BIND_SERVICE+eip $(readlink -f $(which ovsdb-server)) && \ setcap CAP_NET_ADMIN,CAP_NET_BIND_SERVICE,CAP_SYS_MODULE,CAP_SYS_ADMIN+eip $(readlink -f $(which ovs-vswitchd)); \ - fi - -RUN --mount=type=bind,target=/packages,from=ovs-builder,source=/packages \ - if [ "${DEBUG}" = "true" ]; then \ + else \ apt update && apt install -y --no-install-recommends gdb valgrind && \ rm -rf /var/lib/apt/lists/* && \ dpkg -i --ignore-depends=openvswitch-switch,openvswitch-common /packages/*.ddeb; \