Skip to content

Commit

Permalink
Shrink and better document the debug image (envoyproxy#470)
Browse files Browse the repository at this point in the history
* Shrink and better document the debug image

before: 722MB
after: 236MB
(Not counting envoy itself)

Fixes envoyproxy#423

Needs istio/old_pilot_repo#1202 to fully work

```release-note
Reduce proxy debug image by 2/3rd (486Mb) yet as functional
```

* Alignement fix
  • Loading branch information
ldemailly authored Sep 8, 2017
1 parent ac555e5 commit 2d34233
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions docker/Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2d34233

Please sign in to comment.