summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-09-20 14:54:21 -0700
committerahothan <ahothan@cisco.com>2017-10-20 00:37:13 -0700
commitfa7805aab1541cd28da746cccbd90942a223f035 (patch)
treebba7843448c0385bd457e032dab00e222dd84565 /docker/Dockerfile
parent8ce067b17e3a4af300ea99ef3015ba6f7e46ea43 (diff)
NFVBENCH-31 Build container with the VM image in it
Change-Id: Ia6870ee63b50e677e00c1f91649e7c590288b44d Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 9333588..770ff2c 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -3,6 +3,7 @@ FROM ubuntu:16.04
ENV TREX_VER "v2.29"
ENV NFVBENCH_TAG "1.0.7"
+ENV VM_IMAGE_VER "0.4"
RUN apt-get update && apt-get install -y \
git \
@@ -28,6 +29,7 @@ RUN apt-get update && apt-get install -y \
&& cd / \
&& git clone --depth 1 -b $NFVBENCH_TAG https://gerrit.opnfv.org/gerrit/nfvbench \
&& cd /nfvbench && pip install -e . \
+ && wget -O nfvbenchvm-$VM_IMAGE_VER.qcow2 http://artifacts.opnfv.org/nfvbench/images/nfvbenchvm_centos-$VM_IMAGE_VER.qcow2 \
&& python ./docker/cleanup_generators.py \
&& rm -rf /nfvbench/.git \
&& apt-get remove -y wget git \