From 5448462d7aa342c752196bb8ac17598d98a32088 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 3 Sep 2018 21:37:28 +0200 Subject: Avoid cloning repos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It inits the repos and fetch the required tags/ids/branches. All tags are fetched to meet pbr requirements. Change-Id: I0accd8ad04b93d63857e301dea11af69e0edf957 Signed-off-by: Cédric Ollivier --- docker/benchmarking/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docker/benchmarking/Dockerfile') diff --git a/docker/benchmarking/Dockerfile b/docker/benchmarking/Dockerfile index 3afa5c483..7b98eade9 100644 --- a/docker/benchmarking/Dockerfile +++ b/docker/benchmarking/Dockerfile @@ -13,8 +13,10 @@ RUN apk --no-cache add --update libxml2 libxslt && \ > upper-constraints.txt && \ wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH | \ sed -E /#egg=functest/d > upper-constraints.opnfv.txt && \ - git clone https://git.openstack.org/openstack/vmtp.git /src/vmtp && \ - (cd /src/vmtp && git fetch origin --tags $VMTP_TAG && git checkout FETCH_HEAD) && \ + git init /src/vmtp && \ + (cd /src/vmtp && \ + git fetch --tags https://git.openstack.org/openstack/vmtp.git $VMTP_TAG && \ + git checkout FETCH_HEAD) && \ update-requirements -s --source /src/openstack-requirements /src/vmtp/ && \ pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \ /src/vmtp && \ -- cgit 1.2.3-korg