Artifact c9300b45756de297a0badd1ade881858a3df4b9c042154e39b065af9eb92db48:
- File iperf3/Containerfile — part of check-in [bbab9c0693] at 2025-01-24 11:30:16 on branch trunk — Renamed iperf3/Dockerfile to Containerfile. (user: tangent size: 533)
- File iperf3/Dockerfile — part of check-in [6008e8f3d4] at 2024-07-06 15:22:18 on branch trunk — Added an empty /tmp to the iperf3 image for the benefit of container engines that don't provide it on instantiation. Resolves the unhelpful "iperf3: error - unable to create a new stream: Bad file descriptor" error due to iperf3's method of creating a background mmap'd file under /tmp for use in the test. (user: tangent size: 533)
# syntax=docker/dockerfile:1.0 ## STAGE 1: Build the static iperf3 binary FROM alpine:edge AS build ARG VERSION=master RUN apk add --no-cache build-base git RUN git clone --depth 1 --branch ${VERSION} https://github.com/esnet/iperf RUN iperf/configure CFLAGS="-Os -s" --enable-static-bin RUN make -j12 RUN mkdir /empty ## STAGE 2: Build the container proper FROM scratch COPY --from=build /src/iperf3 /bin/ COPY --from=build /empty/ /tmp/ # Start it as a server. EXPOSE 5201/tcp 5201/udp ENTRYPOINT [ "/bin/iperf3" ] CMD [ "-s" ]