summaryrefslogtreecommitdiffstats
path: root/docker/features/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/features/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/features/Dockerfile')
-rw-r--r--docker/features/Dockerfile5
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 && \