summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-10-12 17:22:33 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-10-12 17:22:33 +0800
commit2dda7f90927934bc5738287b2f8960a4d14bb07e (patch)
treed02048bfe6e82e9501c8496cdc89732012008e21 /docker/Dockerfile
parentc8a687ee896eeb7b1184f88191fecd7f76e26c16 (diff)
solve log path cannot be found issue
JIRA: QTIP-124 Change-Id: I2ff94d01085ee8f057b9792988fe5ee9792fe740 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 2b93c260..10537ecc 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -13,6 +13,7 @@ LABEL version="0.1" description="OPNFV QTIP Docker container"
ENV REPOS_DIR /home/opnfv/repos
ENV QTIP_DIR /home/opnfv/repos/qtip
ENV PYTHONPATH /home/opnfv/repos/qtip
+ENV HOME /home/opnfv
WORKDIR /home/opnfv
@@ -44,7 +45,7 @@ RUN apt-get install ansible --force-yes -y
RUN mkdir -p ${REPOS_DIR}
RUN mkdir -p /root/.ssh
-RUN mkdir -p /home/opnfv/qtip/logs
+RUN mkdir -p $HOME/qtip/logs
RUN chmod 700 /root/.ssh
#Config ansible
@@ -58,4 +59,4 @@ RUN git clone https://gerrit.opnfv.org/gerrit/releng $REPOS_DIR/releng
RUN pip install -r $REPOS_DIR/qtip/requirements.txt
-CMD cd $REPOS_DIR/qtip && python restful_server/qtip_server.py>/var/log/qtip/run.log
+CMD cd $REPOS_DIR/qtip && python restful_server/qtip_server.py>$HOME/qtip/logs/run.log