diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-09-03 21:37:28 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-09-03 21:37:28 +0200 |
commit | 5448462d7aa342c752196bb8ac17598d98a32088 (patch) | |
tree | 27fddad858f2fc1d8c385b97caf6e0b71eb06420 /docker/features | |
parent | a71167e6348475085f97a64392690ec2032e16b2 (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/features')
-rw-r--r-- | docker/features/Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/features/Dockerfile b/docker/features/Dockerfile index 7024f9634..99de1eda5 100644 --- a/docker/features/Dockerfile +++ b/docker/features/Dockerfile @@ -14,7 +14,10 @@ RUN apk --no-cache add --update python3 sshpass && \ > 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 --depth 1 -b $FDS_TAG https://gerrit.opnfv.org/gerrit/fds /src/fds && \ + git init /src/fds && \ + (cd /src/fds && \ + git fetch --tags https://gerrit.opnfv.org/gerrit/fds $FDS_TAG && \ + git checkout FETCH_HEAD) && \ pip install --no-cache-dir --src /src -cupper-constraints.txt \ -cupper-constraints.opnfv.txt \ -rthirdparty-requirements.txt && \ |