aboutsummaryrefslogtreecommitdiffstats
path: root/docker/benchmarking/Dockerfile
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-05-09 17:15:33 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-05-10 11:48:51 +0200
commit1c376f363a95d040676ea3f245e55ac3f40710a4 (patch)
tree740fb6eded66fb37a738709e12e67ef83a013a4c /docker/benchmarking/Dockerfile
parente252bccbc9cdbad66ab2152cf156a9a36eb1a565 (diff)
Benchmark Kubernetes Networking Performance
https://github.com/kubernetes/perf-tests/tree/master/network/benchmarks/netperf Change-Id: I6facd567f1c52c5949b53484a1fb107dcf34d622 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3b5c1b115e234d636cb4f2a17d27ced872fee924)
Diffstat (limited to 'docker/benchmarking/Dockerfile')
-rw-r--r--docker/benchmarking/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/docker/benchmarking/Dockerfile b/docker/benchmarking/Dockerfile
index a8b74b82..92d50655 100644
--- a/docker/benchmarking/Dockerfile
+++ b/docker/benchmarking/Dockerfile
@@ -1,4 +1,20 @@
FROM opnfv/functest-kubernetes-smoke:leguer
+ARG NETPERF_TAG=8a5a7a23f2165b29e46b4d32aad7d5f85e4b9516
+ARG PLOTPERF_TAG=2455313f4b9581795a8f642243acaad472d91804
+
+COPY plotperf.py.patch /tmp/plotperf.py.patch
+RUN apk --no-cache add --update py3-matplotlib && \
+ apk --no-cache add --virtual .build-deps --update patch go && \
+ ln -s /usr/bin/python3 /usr/bin/python && \
+ git clone https://github.com/kubernetes/perf-tests && \
+ (cd perf-tests && git checkout $NETPERF_TAG) && \
+ (cd perf-tests/network/benchmarks/netperf && go build -o /usr/local/bin/launch launch.go) && \
+ curl https://raw.githubusercontent.com/girishkalele/pyplot-docker/$PLOTPERF_TAG/plotperf.py \
+ --output /usr/local/bin/plotperf.py && \
+ (cd /usr/local/bin && patch -p0 < /tmp/plotperf.py.patch && \
+ mv plotperf.py plotperf && chmod a+x plotperf) && \
+ rm -rf perf-tests /tmp/plotperf.py.patch && \
+ apk del .build-deps
COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]