aboutsummaryrefslogtreecommitdiffstats
path: root/docker/tempest/Dockerfile
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-09-03 21:37:28 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-09-03 21:37:28 +0200
commit5448462d7aa342c752196bb8ac17598d98a32088 (patch)
tree27fddad858f2fc1d8c385b97caf6e0b71eb06420 /docker/tempest/Dockerfile
parenta71167e6348475085f97a64392690ec2032e16b2 (diff)
Avoid cloning repos
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 <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/tempest/Dockerfile')
-rw-r--r--docker/tempest/Dockerfile18
1 files changed, 12 insertions, 6 deletions
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 && \