aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoropensource-tnbt <sridhar.rao@spirent.com>2020-05-24 13:40:47 +0530
committeropensource-tnbt <sridhar.rao@spirent.com>2020-05-24 13:42:15 +0530
commit9145d9908a62aa05d2120569ce3bf9e296ebb07c (patch)
tree36447d7d1906b25eac1ddaa5158a2920bb22c771
parentf8ef3e492f836069caab427d54775fdf114f5112 (diff)
Tools: Dockerfile to run VSPERF in a Container.
This patch adds a dockerfile to run VSPERF in a container. This version can run VSPERF in Trafficgen mode ONLY. Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com> Change-Id: Ie5300b52c7358854c3facf65185ec03f2a5e0dc7
-rw-r--r--tools/docker/vsperf/Dockerfile37
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/docker/vsperf/Dockerfile b/tools/docker/vsperf/Dockerfile
new file mode 100644
index 00000000..effce15b
--- /dev/null
+++ b/tools/docker/vsperf/Dockerfile
@@ -0,0 +1,37 @@
+# To Build
+# docker build --rm -t vsperf .
+
+# -------- Builder stage.
+FROM python:3.6.10-slim-buster
+MAINTAINER Sridhar Rao <sridhar.rao@spirent.com>
+
+# Create a directory
+RUN mkdir /home/opnfv
+#
+# Update and Install required packages
+#
+RUN apt-get -y update
+RUN apt-get -y install git iputils-ping openssh-client tk
+
+#
+# Get vswitchperf
+#
+RUN cd /home/opnfv && \
+ git clone https://gerrit.opnfv.org/gerrit/vswitchperf
+
+#
+# Remove unnecessary python packages.
+#
+RUN cd /home/opnfv/vswitchperf && \
+ sed -e '/numpy/ s/^#*/#\ /' -i requirements.txt && \
+ sed -e '/matplotlib/ s/^#*/#\ /' -i requirements.txt && \
+ sed -e '/pycrypto/ s/^#*/#\ /' -i requirements.txt && \
+ sed -e '/pypsi/ s/^#*/#\ /' -i requirements.txt && \
+ sed -e '/paramiko/ s/^#*/#\ /' -i requirements.txt && \
+ sed -e '/pyzmq/ s/^#*/#\ /' -i requirements.txt && \
+ sed -e "\$apyzmq" -i requirements.txt
+
+#
+# Build VSPERF
+#
+RUN cd /home/opnfv/vswitchperf/systems && ./build_base_machine.sh --trafficgen