summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2019-05-14 08:28:56 -0400
committerDan Xu <xudan16@huawei.com>2019-06-12 01:33:40 +0000
commitd1091a5e7c5f6b466d678fca0f47801d3e3f0e1a (patch)
treed216efaf5504ceda2c4b8edb563cf3ae7686c1c8 /docker/Dockerfile
parentfe1a78666f215a568866c4b5eb28c8feda0ad278 (diff)
Add RESTful APIs into Dovetail container
JIRA: DOVETAIL-774 Change-Id: Ifb934eaeda52c1d316d80d9bb9c1890ffb71049c Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 0116a788..077f5e34 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -33,6 +33,7 @@ RUN pip install -U setuptools wheel
ENV HOME /home/opnfv
ENV REPOS_DIR ${HOME}/dovetail
+ENV API_DIR ${REPOS_DIR}/dovetail/api
WORKDIR $HOME
RUN \
@@ -51,7 +52,6 @@ RUN \
WORKDIR ${REPOS_DIR}/dovetail
-# get db schema from opnfv sites
-# RUN mkdir -p ${REPOS_DIR}/dovetail/utils/local_db
-# ADD get_db_schema.py ${REPOS_DIR}/dovetail/utils/local_db
-# RUN cd ${REPOS_DIR}/dovetail/utils/local_db && python get_db_schema.py
+ENV FLASK_APP ${API_DIR}/app/routes.py
+EXPOSE 5000
+CMD ${API_DIR}/boot.sh