Allow pulling Neutron reviews or tags 47/65947/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Tue, 18 Dec 2018 14:59:23 +0000 (15:59 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 18 Dec 2018 15:02:42 +0000 (16:02 +0100)
It updates smoke/Dockerfile to allow pulling Neutron reviews/tags
(rally_jobs).

Change-Id: Ifc10eebb444bfe2c3e1fb47a9bd52d8a4f8a7007
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/smoke/Dockerfile

index df5f2c2..47c6a20 100644 (file)
@@ -41,8 +41,10 @@ RUN apk --no-cache add --virtual .build-deps --update \
         -O /home/opnfv/functest/data/refstack/defcore.txt && \
     mkdir -p /etc/neutron /etc/glance && \
     wget -q -O /etc/glance/policy.json https://git.openstack.org/cgit/openstack/glance/plain/etc/policy.json?h=$OPENSTACK_TAG && \
-    git clone --depth 1 -b $NEUTRON_RALLY_TAG https://git.openstack.org/openstack/neutron.git /src/neutron && \
-    (cd /src/neutron && git fetch --tags origin $NEUTRON_RALLY_TAG && git checkout FETCH_HEAD) && \
+    git init /src/neutron && \
+    (cd /src/neutron && \
+        git fetch --tags https://git.openstack.org/openstack/neutron.git $NEUTRON_RALLY_TAG && \
+        git checkout FETCH_HEAD) && \
     mkdir -p /home/opnfv/functest/data/rally/neutron && \
     cp -r /src/neutron/rally-jobs /home/opnfv/functest/data/rally/neutron/rally-jobs && \
     rm -r /src/neutron && \