LABEL version="v1" description="OPNFV TestAPI Docker container"
ARG BRANCH=master
-ARG COMMIT_ID=master
ENV HOME /home
python-dev \
python-pip \
crudini \
+libffi-dev \
+libssl-dev \
+libxml2-dev \
+libxslt1-dev \
--no-install-recommends
WORKDIR /home
-RUN pip install --upgrade pip
+#RUN pip install --upgrade pip
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 git checkout -f $BRANCH
RUN mkdir -p /home/testapi
RUN cp -rf /home/dovetail/cvp/* /home/testapi
-WORKDIR /home/testapi/
+WORKDIR /home/dovetail/cvp
RUN pip install -r requirements.txt
RUN bash install.sh
+
CMD ["bash", "docker/start-server.sh"]
LABEL version="v1" description="CVP nginx"
ARG BRANCH=master
-ARG COMMIT_ID=master
ENV HOME /home
WORKDIR /home
RUN git clone https://gerrit.opnfv.org/gerrit/dovetail.git
WORKDIR /home/dovetail
-RUN git checkout -f $COMMIT_ID
+RUN git checkout -f $BRANCH
RUN mkdir -p /home/testapi
ADD supervisor/conf.d/nginx.conf /etc/supervisor/conf.d/nginx.conf
ADD start-nginx.sh /home/start-nginx.sh
+WORKDIR /home
CMD ["bash", "start-nginx.sh"]