From d488b0b40248731021204c4c41c9326cc13b3472 Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Thu, 7 Aug 2025 22:28:22 -0400 Subject: [PATCH] Remove several tools that pull in too many dependencies Since the tools image is a base for a few other images that get deployed as runtime components we should slim it down to both reduce its size and CVE exposure. Reduces package set by 133 and image size by ~ 200MiB. --- images/tools/Dockerfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/images/tools/Dockerfile b/images/tools/Dockerfile index c6af30d3c2..3bf5955f9e 100644 --- a/images/tools/Dockerfile +++ b/images/tools/Dockerfile @@ -8,17 +8,13 @@ COPY --from=builder /go/src/github.com/openshift/oc/oc /usr/bin/ COPY --from=builder /go/src/github.com/openshift/oc/images/tools/sos.conf /etc/sos/ RUN for i in kubectl openshift-deploy openshift-docker-build openshift-sti-build openshift-git-clone openshift-manage-dockerfile openshift-extract-image-content openshift-recycle; do ln -sf /usr/bin/oc /usr/bin/$i; done RUN INSTALL_PKGS="\ - bash-completion \ - bc \ bind-utils \ - blktrace \ crash \ e2fsprogs \ ethtool \ file \ fio \ - git \ - glibc-utils \ + git-core \ gzip \ hwloc \ iotop \ @@ -33,17 +29,14 @@ RUN INSTALL_PKGS="\ pciutils \ procps-ng \ psmisc \ - perf \ python3 \ sos \ - s-nail \ strace \ stress-ng \ sysstat \ tcpdump \ tmux \ util-linux \ - vim-enhanced \ wget \ xfsprogs \ " && \