diff mbox series

[virtme-docker] docker: install iperf

Message ID 27fc057073806f67eb30b20ad732a1d3ccaf05e1.1710210140.git.geliang@kernel.org (mailing list archive)
State Rejected, archived
Delegated to: Matthieu Baerts
Headers show
Series [virtme-docker] docker: install iperf | expand

Commit Message

Geliang Tang March 12, 2024, 2:22 a.m. UTC
Download, compile and install iperf in docker for the coming mptcp iperf
tests.

Signed-off-by: Geliang Tang <geliang@kernel.org>
---
 Dockerfile | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/Dockerfile b/Dockerfile
index b75d4bb..b9bb539 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -88,6 +88,15 @@  RUN cd /opt && \
 		make -j"$(nproc)" -l"$(nproc)" && \
 		make install
 
+# iperf
+ARG IPERF_GIT_URL="https://github.com/geliangtang/iperf.git"
+RUN cd /opt && \
+	git clone "${IPERF_GIT_URL}" && \
+	cd iperf && \
+		./configure --prefix=/usr && \
+		make -j"$(nproc)" -l"$(nproc)" && \
+		make install
+
 # to quickly shutdown the VM and more
 RUN for i in /usr/lib/klibc/bin/*; do \
 	type "$(basename "${i}")" >/dev/null 2>&1 || ln -sv "${i}" /usr/sbin/; \