From 4caac81cbbdacd56aa120b21d7e5b754b400477c Mon Sep 17 00:00:00 2001 From: Shay Berkovich Date: Sun, 28 Jan 2024 17:08:03 +0200 Subject: [PATCH] Add tcpdump to the image --- Dockerfile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f0cffe..42b2acf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,22 @@ -FROM ubuntu:18.04 +FROM ubuntu:22.04 +MAINTAINER g00fb4ll COPY fubers /tmp/fubers -ADD https://download.docker.com/linux/static/stable/x86_64/docker-20.10.7.tgz /tmp/docker/docker-20.10.7.tgz -RUN tar -zxvf /tmp/docker/docker-20.10.7.tgz -C /tmp +ADD https://download.docker.com/linux/static/stable/x86_64/docker-24.0.8.tgz /tmp/docker/docker-24.0.8.tgz +RUN tar -zxvf /tmp/docker/docker-24.0.8.tgz -C /tmp RUN cp /tmp/docker/docker /tmp/gdocker -ADD https://dl.k8s.io/release/v1.18.0/bin/linux/amd64/kubectl /tmp/gkubectl +ADD https://dl.k8s.io/release/v1.27.0/bin/linux/amd64/kubectl /tmp/gkubectl RUN chmod +x /tmp/gkubectl -ADD https://github.com/cyberark/kubeletctl/releases/download/v1.7/kubeletctl_linux_amd64 /tmp/kubeletctl +ADD https://github.com/cyberark/kubeletctl/releases/download/v1.11/kubeletctl_linux_amd64 /tmp/kubeletctl RUN chmod a+x /tmp/kubeletctl -RUN apt-get -y update && apt-get install -y curl && apt-get -y install wget && \ +RUN apt-get -y update +RUN apt-get install -y curl +RUN apt-get -y install wget && \ apt-get -y install netcat && apt-get install sudo && apt-get -y install redis-tools && \ - apt-get -y install netdiscover + apt-get -y install netdiscover && apt-get install tcpdump WORKDIR /tmp RUN ln -s /bin/bash /tmp/gbash RUN ln -s /usr/bin/nsenter /tmp/runc-nsenter -CMD ["/tmp/gbash"] \ No newline at end of file +CMD ["/tmp/gbash"]