summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-12-18 15:59:23 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-12-18 16:03:48 +0100
commit7849ac422c14ed05a5f96baed7d3b846e0059c3a (patch)
treef8dfd04e95ce3480ca0cc0aa54250ef2143eb9bb /docker
parent41980043cc76ae44ef5d6b399a9859bf91e673c6 (diff)
Allow pulling Neutron reviews or tags
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> (cherry picked from commit 2d0c8cb6eaf10b7c712335beb79fae726ea3a965)
Diffstat (limited to 'docker')
-rw-r--r--docker/smoke/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/smoke/Dockerfile b/docker/smoke/Dockerfile
index 0c0b56160..8874f0eec 100644
--- a/docker/smoke/Dockerfile
+++ b/docker/smoke/Dockerfile
@@ -42,8 +42,10 @@ RUN apk --no-cache add --virtual .build-deps --update \
mkdir -p /etc/neutron /etc/glance && \
wget -q -O /etc/neutron/policy.json https://git.openstack.org/cgit/openstack/neutron/plain/etc/policy.json?h=$OPENSTACK_TAG && \
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 && \