Change to use "pip install -r requirements.txt" to install deps. 63/27263/2
authorTomofumi Hayashi <tohayash@redhat.com>
Fri, 20 Jan 2017 04:10:50 +0000 (13:10 +0900)
committerTomofumi Hayashi <tohayash@redhat.com>
Tue, 24 Jan 2017 06:11:33 +0000 (15:11 +0900)
At the change of DOVETAIL-183, dovetail uses requirements.txt to
install python dependency file so this change is following it.

Change-Id: I6cb2420274f385224b517950ddfdf1cf0e764350
Signed-off-by: Tomofumi Hayashi <tohayash@redhat.com>
docker/Dockerfile.centos7

index acf6028..c423bad 100644 (file)
@@ -6,8 +6,7 @@ ARG BRANCH=master
 
 RUN yum update -y && yum install -y sudo iproute epel-release && \
         yum install -y python-pip git docker && \
-        sed -ie 's/requiretty/!requiretty/g' /etc/sudoers && \
-        pip install pyyaml click jinja2
+        sed -ie 's/requiretty/!requiretty/g' /etc/sudoers
 
 ENV HOME /home/opnfv
 ENV REPOS_DIR ${HOME}/dovetail
@@ -15,6 +14,9 @@ WORKDIR /home/opnfv
 
 RUN git config --global http.sslVerify false && \
     git clone --depth 1 -b $BRANCH https://git.opnfv.org/dovetail ${REPOS_DIR} && \
+    pip install -U pip && \
+    pip install -r ${REPOS_DIR}/requirements.txt && \
+    pip install -e . && \
     mkdir -p ${REPOS_DIR}/results
 
 WORKDIR ${REPOS_DIR}/dovetail