Skip to content

Instantly share code, notes, and snippets.

@Zottelchen
Created May 21, 2024 14:12
Show Gist options
  • Save Zottelchen/dd47d4da479aa4f0aa761a86a0f0407e to your computer and use it in GitHub Desktop.
Save Zottelchen/dd47d4da479aa4f0aa761a86a0f0407e to your computer and use it in GitHub Desktop.
iperf3 Dockerfile
# Start from the Red Hat UBI 9 base image
FROM registry.access.redhat.com/ubi9/ubi:latest
ARG IPERF_VERSION=3.17.1
# Install & build
RUN dnf install -y gcc make openssl-devel \
&& dnf clean all \
&& curl -OL https://github.com/esnet/iperf/archive/refs/tags/${IPERF_VERSION}.tar.gz \
&& tar -xzf ${IPERF_VERSION}.tar.gz \
&& cd iperf-${IPERF_VERSION} \
&& ./configure \
&& make \
&& make install \
&& rm -rf /iperf-${IPERF_VERSION} ${IPERF_VERSION}.tar.gz \
&& dnf remove -y gcc make openssl-devel \
&& dnf clean all
# Set the entrypoint to iperf3
ENTRYPOINT ["iperf3"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment