Skip to content

Instantly share code, notes, and snippets.

@rkbalgi
Created June 20, 2024 02:54
Show Gist options
  • Save rkbalgi/86de9a018d9d2e6169a5e0eb4374a7a7 to your computer and use it in GitHub Desktop.
Save rkbalgi/86de9a018d9d2e6169a5e0eb4374a7a7 to your computer and use it in GitHub Desktop.
Custom envoy docker with curl, grpcurl, tcpdump
# Use this to build a custom envoy image with tools like curl, grpcurl, tcpdump etc
FROM curlimages/curl:8.8.0
FROM envoyproxy/envoy:dev
# Run below if behind a firewall and you have your own sources for ubuntu apt repos
RUN \
sed -i "s@http://archive.ubuntu.com/ubuntu/@https://company.com/ubuntu/@g" /etc/apt/sources.list && \
sed -i "s@http://security.ubuntu.com/ubuntu/@https://company.com/ubuntu/@g" /etc/apt/sources.list && \
sed -i "s#https\{0,1\}://\(us\.\)\{0,1\}ports.ubuntu.com/ubuntu-ports/\{0,1\}#https://company.com/ubuntu-ports/#g" /etc/apt/sources.list && \
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade && \
apt-get clean && \
apt install curl -y && apt install tcpdump -y \
# Download latest from https://github.com/fullstorydev/grpcurl/releases
COPY grpcurl_1.9.1_linux_arm64.deb /tmp/grpcurl_1.9.1_linux_arm64.deb
RUN apt install /tmp/grpcurl_1.9.1_linux_arm64.deb
# Any proto files required by grpcurl
COPY msg.proto /etc/envoy/msg.proto
# Certs if required
COPY cacerts2.pem /etc/envoy/cacerts2.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment