aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-09-20 14:54:21 -0700
committerKerim Gokarslan <kgokarsl@cisco.com>2017-09-20 14:54:21 -0700
commitf88f79566bebfcfdb4f70cd7870220d285cd1ece (patch)
treebba7843448c0385bd457e032dab00e222dd84565 /docker
parent2cf11d9c962809f108ada00a5ebf2c866c5e5a7b (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')
-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 \