1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- FROM debian:bookworm AS builder
- ENV WCURL_VERSION=2024.07.10
- ENV MTOOLS_VERSION=v3.0
- ENV SCAMPER_VERSION=20240725
- # build & install wcurl
- RUN set -e -x \
- && export DEBIAN_FRONTEND=noninteractive \
- && apt-get update \
- && apt-get --yes install git \
- && cd /root \
- && git clone --depth 1 --branch "$WCURL_VERSION" https://github.com/Debian/wcurl.git \
- && cd wcurl \
- && install -Dm755 wcurl /usr/local/bin/wcurl \
- && install -Dm755 wcurl.1 /usr/local/share/man/man1/wcurl.1
- # build & install mtools
- RUN set -e -x \
- && export DEBIAN_FRONTEND=noninteractive \
- && apt-get update \
- && apt-get --yes install build-essential git \
- && cd /root \
- && git clone --depth 1 --branch "$MTOOLS_VERSION" https://github.com/troglobit/mtools.git \
- && cd mtools \
- && make all \
- && make install
- # build & install scamper
- RUN set -e -x \
- && export DEBIAN_FRONTEND=noninteractive \
- && apt-get update \
- && apt-get --yes install build-essential curl \
- && cd /root \
- && wcurl "https://www.caida.org/catalog/software/scamper/code/scamper-cvs-$SCAMPER_VERSION.tar.gz" \
- && tar xfz "scamper-cvs-$SCAMPER_VERSION.tar.gz" \
- && cd "scamper-cvs-$SCAMPER_VERSION/" \
- && ./configure \
- && make \
- && make install
- FROM debian:bookworm
- COPY --from=builder /usr/local/bin/ /usr/local/bin/
- COPY --from=builder /usr/local/sbin/ /usr/local/bin/
- COPY --from=builder /usr/local/share/ /usr/local/share/
- # Install tools
- RUN set -e -x \
- && export DEBIAN_FRONTEND=noninteractive \
- && apt-get update \
- && apt-get --yes install mtr iputils-tracepath iputils-ping iputils-clockdiff iputils-arping traceroute socat nmap nmap-common ncat netcat-openbsd tcpdump bind9-dnsutils ldnsutils curl wget openssh-client tshark iperf3 fping python3 python3-scapy iproute2 ifupdown net-tools vim telnet man htop
- # Prepare system
- RUN set -e -x \
- && export DEBIAN_FRONTEND=noninteractive \
- && apt-get update \
- && apt-get --yes install dumb-init
- # Create entrypoint
- ADD init.sh /etc/init.sh
- RUN chmod +x /etc/init.sh
- ENTRYPOINT [ "/etc/init.sh" ]
- VOLUME [ "/root" ]
- # Properties
- LABEL org.opencontainers.image.title="ipterm-enhanced"
- LABEL org.opencontainers.image.description="Fork from gns3/ipterm with additional tools like wcurl, scamper, iputils, mtr, nmap, netcat, scapy and a few others."
- LABEL org.opencontainers.image.source="https://codeberg.org/mark22k/ipterm-enhanced/"
- LABEL org.opencontainers.image.authors="Marek Küthe <m.k@mk16.de>, GNS3 Team"
|