From 2d342333ea08605d32a415539ae6ae4bfbbdadf6 Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Thu, 7 Sep 2017 22:42:02 -0700 Subject: [PATCH] Shrink and better document the debug image (#470) * Shrink and better document the debug image before: 722MB after: 236MB (Not counting envoy itself) Fixes #423 Needs https://github.com/istio/pilot/pull/1202 to fully work ```release-note Reduce proxy debug image by 2/3rd (486Mb) yet as functional ``` * Alignement fix --- docker/Dockerfile.debug | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/docker/Dockerfile.debug b/docker/Dockerfile.debug index 454235adfd80..74ac2a960d62 100644 --- a/docker/Dockerfile.debug +++ b/docker/Dockerfile.debug @@ -1,22 +1,26 @@ FROM ubuntu:xenial +# Do not add more stuff to this list that isn't small or critically useful. +# If you occasionally need something on the container do +# sudo /usr/local/bin/proxy-redirection-clear +# sudo apt-get update && apt-get whichever +# sudo /usr/local/bin/proxy-redirection-restore RUN apt-get update && \ - apt-get install -y \ - curl \ - iptables \ - iproute2 \ - iputils-ping \ - dnsutils \ - netcat \ - tcpdump \ - net-tools \ - libc6-dbg gdb valgrind \ - vim \ - nano \ - emacs \ - wrk \ - lsof \ - busybox \ - sudo + apt-get install --no-install-recommends -y \ + curl \ + iptables \ + iproute2 \ + iputils-ping \ + dnsutils \ + netcat \ + tcpdump \ + net-tools \ + libc6-dbg gdb \ + elvis-tiny \ + lsof \ + busybox \ + sudo && \ + rm -rf /var/lib/apt/lists/* + # Deprecated: use "/usr/local/bin/istio-iptables.sh clear" ADD proxy-redirection-clear /usr/local/bin/proxy-redirection-clear ADD proxy-redirection-restore /usr/local/bin/proxy-redirection-restore