From f52ef45c787d5cd6166bb7cbf812e4f598c51061 Mon Sep 17 00:00:00 2001 From: grakiss Date: Fri, 29 Sep 2017 02:10:51 -0400 Subject: [cvp-web]correct dockerfile JIRA: DOVETAIL-515 correct dockerfile, git clone from dovetail Change-Id: I1dee7f8ae5278f55bcf5928bbf88cdb079388494 Signed-off-by: grakiss --- cvp/docker/Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'cvp/docker/Dockerfile') diff --git a/cvp/docker/Dockerfile b/cvp/docker/Dockerfile index 126afcef..fa39ac65 100644 --- a/cvp/docker/Dockerfile +++ b/cvp/docker/Dockerfile @@ -27,6 +27,9 @@ FROM ubuntu:14.04 MAINTAINER SerenaFeng LABEL version="v1" description="OPNFV TestAPI Docker container" +ARG BRANCH=master +ARG COMMIT_ID=master + ENV HOME /home # Packaged dependencies @@ -40,10 +43,20 @@ python-pip \ crudini \ --no-install-recommends + +WORKDIR /home + RUN pip install --upgrade pip RUN git config --global http.sslVerify false -RUN git clone https://github.com/grakiss888/testapi.git /home/testapi + +RUN git clone https://gerrit.opnfv.org/gerrit/dovetail.git + +WORKDIR /home/dovetail +RUN git checkout -f $COMMIT_ID + +RUN mkdir -p /home/testapi +RUN cp -rf /home/dovetail/cvp/* /home/testapi WORKDIR /home/testapi/ RUN pip install -r requirements.txt -- cgit 1.2.3-korg