[PATCH virtme-docker] docker: install iperf

Geliang Tang posted 1 patch 1 month, 2 weeks ago
Failed in applying to current master (apply log)
Dockerfile | 9 +++++++++
1 file changed, 9 insertions(+)
[PATCH virtme-docker] docker: install iperf
Posted by Geliang Tang 1 month, 2 weeks ago
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 --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/; \
-- 
2.40.1