JIRA: DOVETAIL-147
1) BRANCH argument added to fix bug in CI
2) docker to use latest version, since BRANCH added not works with old version
Change-Id: Icb0144896389b0cb7ac80e1fb0338825be50d5b1
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
MAINTAINER Leo Wang <grakiss.wanglei@huawei.com>
LABEL version="0.1" description="OPNFV Dovetail Docker Container"
+ARG BRANCH=master
+
RUN \
apt-get update \
&& \
&& \
echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list \
&& \
- apt-get update && apt-get install -y docker-engine=1.9.1-0~trusty \
+ apt-get update && apt-get install -y docker-engine=1.12.3-0~trusty \
&& \
pip install pyyaml \
click \
RUN \
git config --global http.sslVerify false \
&& \
- git clone https://gerrit.opnfv.org/gerrit/dovetail.git ${REPOS_DIR} \
+ git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/dovetail.git ${REPOS_DIR} \
&& \
mkdir -p ${REPOS_DIR}/results