Skip to content

Commit

Permalink
Added debugging packages to Docker images (#13124)
Browse files Browse the repository at this point in the history
  • Loading branch information
fheinecke authored Jun 3, 2022
1 parent deddc61 commit 6045b69
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions build.assets/charts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,43 @@ FROM ubuntu:20.04
# package is installed because the base Ubuntu image does not come with any
# certificate authorities. libelf1 is a dependency introduced by Teleport 7.0.
#
# The below packages are provided for debug purposes. Installing them adds around
# six megabytes to the image size. The packages include the following commands:
# * net-tools
# * netstat
# * ifconfig
# * ipmaddr
# * iptunnel
# * mii-tool
# * nameif
# * plipconfig
# * rarp
# * route
# * slattach
# * arp
# * iputils-ping
# * ping
# * ping4
# * ping6
# * inetutils-telnet
# * telnet
# * netcat
# * netcat
# * tcpdump
# * tcpdump
# * busybox (see "busybox --list" for all provided utils)
# * less
# * nslookup
# * vi
# * wget

# Note that /var/lib/apt/lists/* is cleaned up in the same RUN command as
# "apt-get update" to reduce the size of the image.
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y ca-certificates dumb-init libelf1 && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y net-tools iputils-ping inetutils-telnet netcat tcpdump busybox && \
busybox --install -s && \
update-ca-certificates && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*
Expand Down
32 changes: 32 additions & 0 deletions build.assets/charts/Dockerfile-fips
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,43 @@ FROM ubuntu:20.04
# package is installed because the base Ubuntu image does not come with any
# certificate authorities. libelf1 is a dependency introduced by Teleport 7.0.
#
# The below packages are provided for debug purposes. Installing them adds around
# six megabytes to the image size. The packages include the following commands:
# * net-tools
# * netstat
# * ifconfig
# * ipmaddr
# * iptunnel
# * mii-tool
# * nameif
# * plipconfig
# * rarp
# * route
# * slattach
# * arp
# * iputils-ping
# * ping
# * ping4
# * ping6
# * inetutils-telnet
# * telnet
# * netcat
# * netcat
# * tcpdump
# * tcpdump
# * busybox (see "busybox --list" for all provided utils)
# * less
# * nslookup
# * vi
# * wget
#
# Note that /var/lib/apt/lists/* is cleaned up in the same RUN command as
# "apt-get update" to reduce the size of the image.
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y ca-certificates dumb-init libelf1 && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y net-tools iputils-ping inetutils-telnet netcat tcpdump busybox && \
busybox --install -s && \
update-ca-certificates && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 6045b69

Please sign in to comment.