summaryrefslogtreecommitdiffstats
path: root/docker/healthcheck/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/healthcheck/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/healthcheck/Dockerfile')
-rw-r--r--docker/healthcheck/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/healthcheck/Dockerfile b/docker/healthcheck/Dockerfile
index ccb61abf9..4a1c255b3 100644
--- a/docker/healthcheck/Dockerfile
+++ b/docker/healthcheck/Dockerfile
@@ -12,8 +12,10 @@ RUN wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/uppe
sed -E /#egg=functest/d > upper-constraints.opnfv.txt && \
pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
-rthirdparty-requirements.txt && \
- git clone --depth 1 https://git.opendaylight.org/gerrit/p/integration/test.git /src/odl_test && \
- (cd /src/odl_test && git fetch --depth 1 --tags origin $ODL_TAG && git checkout FETCH_HEAD) && \
+ git init /src/odl_test && \
+ (cd /src/odl_test && \
+ git fetch --tags https://git.opendaylight.org/gerrit/p/integration/test.git $ODL_TAG && \
+ git checkout FETCH_HEAD) && \
rm -r /src/odl_test/.git thirdparty-requirements.txt upper-constraints.txt \
upper-constraints.opnfv.txt
COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml