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/tempest/Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'docker/tempest/Dockerfile') diff --git a/docker/tempest/Dockerfile b/docker/tempest/Dockerfile index d53457913..0cc947939 100644 --- a/docker/tempest/Dockerfile +++ b/docker/tempest/Dockerfile @@ -21,14 +21,20 @@ RUN apk --no-cache add --virtual .build-deps --update \ esac && \ 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 --depth 1 https://git.openstack.org/openstack/os-faults.git /src/os-faults && \ - (cd /src/os-faults && git fetch --depth 1 --tags origin $OS_FAULTS_TAG && git checkout FETCH_HEAD) && \ + git init /src/os-faults && \ + (cd /src/os-faults && \ + git fetch --tags https://git.openstack.org/openstack/os-faults.git $OS_FAULTS_TAG && \ + git checkout FETCH_HEAD) && \ update-requirements -s --source /src/openstack-requirements /src/os-faults/ && \ - git clone --depth 1 https://git.openstack.org/openstack/rally.git /src/rally && \ - (cd /src/rally && git fetch --depth 1 --tags origin $RALLY_TAG && git checkout FETCH_HEAD) && \ + git init /src/rally && \ + (cd /src/rally && \ + git fetch --tags https://git.openstack.org/openstack/rally.git $RALLY_TAG && \ + git checkout FETCH_HEAD) && \ update-requirements -s --source /src/openstack-requirements /src/rally/ && \ - git clone --depth 1 https://git.openstack.org/openstack/rally-openstack.git /src/rally-openstack && \ - (cd /src/rally-openstack && git fetch --depth 1 --tags origin $RALLY_OPENSTACK_TAG && git checkout FETCH_HEAD) && \ + git init /src/rally-openstack && \ + (cd /src/rally-openstack && \ + git fetch --tags https://git.openstack.org/openstack/rally-openstack.git $RALLY_OPENSTACK_TAG && \ + git checkout FETCH_HEAD) && \ update-requirements -s --source /src/openstack-requirements /src/rally-openstack && \ pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \ tempest /src/rally-openstack /src/os-faults && \ -- cgit 1.2.3-korg