forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.bionic_debug
39 lines (34 loc) · 1.03 KB
/
Dockerfile.bionic_debug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:bionic
# Base image for debug builds.
# Built manually uploaded as "istionightly/base_debug"
# 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 apt-get update && apt-get whichever
# hadolint ignore=DL3005,DL3008
RUN apt-get update && \
apt-get install --no-install-recommends -y \
curl \
iptables \
iproute2 \
iputils-ping \
knot-dnsutils \
netcat \
tcpdump \
net-tools \
lsof \
sudo && \
apt-get upgrade -y && \
apt-get clean -y && \
rm -rf /var/cache/debconf/* /var/lib/apt/lists/* \
/var/log/* /tmp/* /var/tmp/*
# Required:
# iptables (1.8M) (required in init, for debugging in the other cases)
# iproute2 (1.5M) (required for init)
# Debug:
# curl (11M)
# tcpdump (5M)
# netcat (0.2M)
# net-tools (0.7M): netstat
# lsof (0.5M): for debugging open socket, file descriptors
# knot-dnsutils (4.5M): dig/nslookup
# Alternative: dnsutils(44M) for dig/nslookup