FROM ubuntu:14.04
MAINTAINER SerenaFeng <feng.xiaowei@zte.com.cn>
-LABEL version="v1" description="OPNFV TestAPI Docker container"
+LABEL version="v2" description="API for OVP web portal backend"
ARG BRANCH=master
RUN git config --global http.sslVerify false
-RUN git clone https://gerrit.opnfv.org/gerrit/dovetail.git
+RUN git clone https://gerrit.opnfv.org/gerrit/dovetail-webportal
-WORKDIR /home/dovetail
+WORKDIR /home/dovetail-webportal
RUN git checkout -f $BRANCH
RUN mkdir -p /home/testapi
RUN mkdir -p /home/testapi/logs/api
-RUN cp -rf /home/dovetail/cvp/* /home/testapi
+RUN cp -rf /home/dovetail-webportal/* /home/testapi
-WORKDIR /home/dovetail/cvp
+WORKDIR /home/dovetail-webportal
RUN pip install -r requirements.txt
RUN bash install.sh
FROM ubuntu:16.04
MAINTAINER Leo Wang <grakiss.wanglei@huawei.com>
-LABEL version="v1" description="CVP nginx"
+LABEL version="v2" description="OVP nginx"
ARG BRANCH=master
RUN apt-get install -y git nginx supervisor
RUN git config --global http.sslVerify false
-RUN git clone https://gerrit.opnfv.org/gerrit/dovetail.git
+RUN git clone https://gerrit.opnfv.org/gerrit/dovetail-webportal
-WORKDIR /home/dovetail
+WORKDIR /home/dovetail-webportal
RUN git checkout -f $BRANCH
RUN mkdir -p /home/testapi
-RUN cp -rf /home/dovetail/cvp/* /home/testapi
+RUN cp -rf /home/dovetail-webportal/* /home/testapi
RUN mkdir /www
RUN cp -r /home/testapi/3rd_party/static /www/
expose:
- "27017"
web:
- image: opnfv/dovetail:web.ovp.1.1.2
+ image: opnfv/dovetail-webportal-web:latest
container_name: cvp-web
restart: always
env_file:
ports:
- "8000:8000"
cvpapi:
- image: opnfv/dovetail:api.ovp.1.1.2
+ image: opnfv/dovetail-webportal-api:latest
container_name: cvp-cvpapi
env_file:
- config.env