Skip to content

Commit 4e5f933

Browse files
committed
Patch qperf and build from source
1 parent 2b34564 commit 4e5f933

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

images/perf/Dockerfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1+
FROM alpine:3.21 AS build-env
2+
RUN apk add --no-cache build-base git autoconf automake perl perl-doc
3+
4+
# Version 0.4.11 requires ipv6, 0.4.10 does not support ipv6 at all.
5+
# To permit running on nodes where IPv6 is disabled in the kernel, we use 0.4.10.
6+
RUN git clone --branch v0.4.10 --single-branch https://github.com/linux-rdma/qperf.git
7+
8+
# Build qperf from source
9+
WORKDIR /qperf
10+
RUN ./cleanup && \
11+
./autogen.sh && \
12+
./configure && \
13+
make
14+
115
FROM alpine:3.21
216

317
RUN apk add --no-cache iperf3 curl tcpdump
4-
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ qperf
18+
COPY --from=build-env /qperf/src/qperf /usr/bin/qperf
519

620
USER perf

0 commit comments

Comments
 (0)