summaryrefslogtreecommitdiffstats
path: root/cvp/docker/Dockerfile.web
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2017-09-29 02:10:51 -0400
committergrakiss <grakiss.wanglei@huawei.com>2017-09-29 02:10:51 -0400
commitf52ef45c787d5cd6166bb7cbf812e4f598c51061 (patch)
tree4191b3ddb9c524ff0e8c2044f5ea21992d78fd3b /cvp/docker/Dockerfile.web
parentf0633486049e9e2d09001fd5c2a599a722f76d03 (diff)
[cvp-web]correct dockerfile
JIRA: DOVETAIL-515 correct dockerfile, git clone from dovetail Change-Id: I1dee7f8ae5278f55bcf5928bbf88cdb079388494 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'cvp/docker/Dockerfile.web')
-rw-r--r--cvp/docker/Dockerfile.web12
1 files changed, 11 insertions, 1 deletions
diff --git a/cvp/docker/Dockerfile.web b/cvp/docker/Dockerfile.web
index cee15513..b8a3dfc4 100644
--- a/cvp/docker/Dockerfile.web
+++ b/cvp/docker/Dockerfile.web
@@ -9,6 +9,8 @@ FROM ubuntu:16.04
MAINTAINER Leo Wang <grakiss.wanglei@huawei.com>
LABEL version="v1" description="CVP nginx"
+ARG BRANCH=master
+ARG COMMIT_ID=master
ENV HOME /home
WORKDIR /home
@@ -17,7 +19,15 @@ RUN apt-get update
RUN apt-get install -y git nginx supervisor
-RUN git clone http://github.com/grakiss888/testapi
+RUN git config --global http.sslVerify false
+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
RUN mkdir /www
RUN cp -r /home/testapi/3rd_party/static /www/