diff options
author | akhilbatra898 <akhil.batra@research.iiit.ac.in> | 2017-03-29 17:39:46 +0530 |
---|---|---|
committer | akhilbatra898 <akhil.batra@research.iiit.ac.in> | 2017-03-29 17:39:46 +0530 |
commit | 3b5113b441bd892497baea5d1179c24c65fa83a6 (patch) | |
tree | 0323d904e386d05aaf7a70b380b54bf5a14b5709 | |
parent | 1bcbfb8a99e0a42bb6d5b87ade3ec15fcddc4bf7 (diff) |
Configure docker to enable api autorun
- modify path to api
- expose api port
Change-Id: I080bd1e82f29120db9acee8f3bd3a3908dc87bc4
Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
-rw-r--r-- | docker/Dockerfile | 3 | ||||
-rw-r--r-- | docker/supervisord.conf | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index d6f8fdd6..dd2bda35 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -64,6 +64,9 @@ RUN git clone https://gerrit.opnfv.org/gerrit/releng $REPOS_DIR/releng RUN cd $REPOS_DIR/qtip && pip install -U . +# Exposing ports +EXPOSE 5000 + #Config supervisor RUN mkdir -p /var/log/supervisor RUN locale-gen en_US en_US.UTF-8 diff --git a/docker/supervisord.conf b/docker/supervisord.conf index a6d457dd..913fbe6f 100644 --- a/docker/supervisord.conf +++ b/docker/supervisord.conf @@ -1,8 +1,8 @@ [supervisord] nodaemon=true -[program:qtip_server] -command=bash -c "cd $REPOS_DIR/qtip&&python qtip/api/qtip_server.py" +[program:qtip_api] +command=bash -c "cd $REPOS_DIR/qtip&&python qtip/api/__main__.py" numprocs=1 autostart=true autorestart=true |