aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-05-10 14:05:52 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-05-10 14:05:52 +0200
commitcb67a492805b2636f6022b28f0d5e090a0356bff (patch)
treeee38a803cdbf6b4976e98c421e70e810d5f640d8 /docker
parent52662320eb45dbe6601441b7fbfcb241d79aefc5 (diff)
Easy creating next netperf branches
Change-Id: If3de6a18b7edd811157cb093434a7128617475d1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/benchmarking/Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/benchmarking/Dockerfile b/docker/benchmarking/Dockerfile
index d209b009..09935bd1 100644
--- a/docker/benchmarking/Dockerfile
+++ b/docker/benchmarking/Dockerfile
@@ -1,12 +1,16 @@
FROM opnfv/functest-kubernetes-smoke
+ARG NETPERF_TAG=master
+ARG PLOTPERF_TAG=master
+
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/master/plotperf.py \
+ 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) && \