diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-03-31 06:18:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-31 06:18:46 +0000 |
commit | 6fec5a5cc7fbaf115c59ac5b3b3f3fabfe940e4c (patch) | |
tree | 6c35c3e6b8bcfe25b85b6c7edfdfbf8e1b8ebb78 | |
parent | ddb71579c10fe3b9c1c10b44fd06f1d7fc0849e3 (diff) | |
parent | 3b5113b441bd892497baea5d1179c24c65fa83a6 (diff) |
Merge "Configure docker to enable api autorun"
-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 |