summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.centos7
diff options
context:
space:
mode:
authorhongbo tian <hongbo.tianhongbo@huawei.com>2017-01-26 04:42:48 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-26 04:42:48 +0000
commitbfb64dbd9f6b9e4ca09c017453f70b2d404e3f3f (patch)
tree03a164f48d04d5fda5eb21f1853e4f1ada4d62b7 /docker/Dockerfile.centos7
parent3374309f5aae1dc2be3ac1eee545a05bca69b8e6 (diff)
parenta18fbe6afe8b51939619d653d35536252455d1fa (diff)
Merge "Change to use "pip install -r requirements.txt" to install deps."
Diffstat (limited to 'docker/Dockerfile.centos7')
-rw-r--r--docker/Dockerfile.centos76
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/Dockerfile.centos7 b/docker/Dockerfile.centos7
index acf60282..c423badd 100644
--- a/docker/Dockerfile.centos7
+++ b/docker/Dockerfile.centos7
@@ -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