Created
May 21, 2024 14:12
-
-
Save Zottelchen/dd47d4da479aa4f0aa761a86a0f0407e to your computer and use it in GitHub Desktop.
iperf3 Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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