diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-06-20 02:43:32 -0400 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-06-20 02:43:32 -0400 |
commit | 2ab5f766fe67e4251d54d5c583503324537cd8f2 (patch) | |
tree | 6aa3917c32a2e2dc78bdaaf9ad8a5db4380b0ee1 /docker | |
parent | 263e1a93ea6d1a3bbbf773efb41338bd789a1269 (diff) |
branch supported in Dockerfile and use functest/yardstick danube.2.0
JIRA: DOVETAIL-447
Change-Id: Id49d6ded8188900b58349e1983ac3fc8b40b6059
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index a700a313..294f42c6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,6 +2,8 @@ FROM ubuntu:14.04 MAINTAINER Leo Wang <grakiss.wanglei@huawei.com> LABEL version="0.1" description="OPNFV Dovetail Docker Container" +ARG BRANCH=master + RUN \ apt-get update \ && \ @@ -27,15 +29,9 @@ WORKDIR /home/opnfv RUN \ git config --global http.sslVerify false \ && \ - git clone https://git.opnfv.org/dovetail ${REPOS_DIR} \ -&& \ - pip install -U pip \ -&& \ - pip install -r ${REPOS_DIR}/requirements.txt \ -&& \ - cd ${REPOS_DIR} \ + pip install git+https://git.opnfv.org/dovetail@$BRANCH#egg=dovetail \ && \ - pip install -e . + ln -s /usr/local/lib/python2.7/dist-packages/dovetail ${REPOS_DIR}/dovetail WORKDIR ${REPOS_DIR}/dovetail |