Skip to content

Commit

Permalink
Fix netperf docker image build failure
Browse files Browse the repository at this point in the history
- debian:jessie container is ~2 years old: apt repo keys are expired and prevent dependency installation
- netperf needs -fcommon flag for building on newer compilers; see HewlettPackard/netperf#46

relevance:
the default image (sirot/netperf-latest) used by the netperf test crashes when given the -testFrom and -testTo parameters. these parameters cannot be turned off, but are implicitly set when omitted by user. building a new container image is neccessary to run tests at all
  • Loading branch information
bitmeal committed Jan 20, 2023
1 parent f1fbbc9 commit 456482e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/benchmarks/netperf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COPY go.mod go.mod

RUN go build -o nptests

FROM debian:jessie
FROM debian:bullseye
ENV LD_LIBRARY_PATH=/usr/local/lib

MAINTAINER Girish Kalele <gkalele@google.com>
Expand All @@ -54,7 +54,7 @@ RUN cd iperf-3.1 && ./configure --prefix=/usr/local --bindir /usr/local/bin && m

# Download and build netperf from sources
RUN curl -LO https://github.com/HewlettPackard/netperf/archive/netperf-2.7.0.tar.gz && tar -xzf netperf-2.7.0.tar.gz && mv netperf-netperf-2.7.0/ netperf-2.7.0
RUN cd netperf-2.7.0 && ./configure --prefix=/usr/local --bindir /usr/local/bin && make && make install
RUN cd netperf-2.7.0 && ./configure --prefix=/usr/local --bindir /usr/local/bin && make CFLAGS=-fcommon && make install

COPY --from=builder /workspace/nptests /usr/bin/

Expand Down

0 comments on commit 456482e

Please sign in to comment.