From 3b5113b441bd892497baea5d1179c24c65fa83a6 Mon Sep 17 00:00:00 2001 From: akhilbatra898 Date: Wed, 29 Mar 2017 17:39:46 +0530 Subject: Configure docker to enable api autorun - modify path to api - expose api port Change-Id: I080bd1e82f29120db9acee8f3bd3a3908dc87bc4 Signed-off-by: akhilbatra898 --- docker/Dockerfile | 3 +++ 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 -- cgit 1.2.3-korg