Skip to content

Commit 19a05e1

Browse files
committed
devctr: build iperf3 from source
We see crashes inside test_high_ingress_traffic on aarch64 with both iperf3 3.16 (currently in devctr) and 3.17 (latest release). We will be building it from source until 3.18 is released and available as a package. Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent 00073f6 commit 19a05e1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tools/devctr/Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ RUN apt-get update \
6666
lsof \
6767
musl-tools \
6868
# needed for integration tests
69-
net-tools iproute2 iperf3 socat fdisk \
69+
net-tools iproute2 socat fdisk \
70+
# We build iperf3 from source until 3.18 is released with a fix to a crash on aarch64
71+
# iperf3 \
7072
numactl \
7173
iptables \
7274
openssh-client \
@@ -147,6 +149,16 @@ RUN mkdir "$TMP_BUILD_DIR" && cd "$TMP_BUILD_DIR" \
147149
&& cd / \
148150
&& rm -rf "$TMP_BUILD_DIR"
149151

152+
# Build iperf3. We need it until 3.18 is released with a fix to a crash on aarch64.
153+
RUN mkdir "$TMP_BUILD_DIR" && cd "$TMP_BUILD_DIR" \
154+
&& git clone https://github.com/esnet/iperf.git \
155+
&& cd iperf && git checkout 0586e1c \
156+
&& mkdir build && cd build \
157+
&& ../configure "LDFLAGS=--static" --disable-shared && make -j $(nproc) \
158+
&& cp src/iperf3 /usr/local/bin/iperf3 \
159+
&& cd / \
160+
&& rm -rf "$TMP_BUILD_DIR"
161+
150162
# Download the codecov.io uploader
151163
RUN cd /usr/local/bin \
152164
&& (if [ "$ARCH" = "x86_64" ]; then \

0 commit comments

Comments
 (0)