diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-04-13 17:17:08 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-04-13 21:06:21 +0200 |
commit | 72e2919e4401ebad2f0dbffd8fd3fcb8899e92f0 (patch) | |
tree | 1c010ab56f8a10f5373282a70977a5ded2472288 /docker/smoke/Dockerfile | |
parent | ff8479f71248890a9f249e3e518dbb0b746a5c03 (diff) |
Stop generating policies for unexecuted services
It saves time when cross-compiling smoke.
Then it allows building arm (Raspberry PI) smoke via travis-ci [1].
[1] https://travis-ci.org/collivier/functest/jobs/519630251
Change-Id: Ifbfcc0d726a8f74fd8a861bb52d6ea2543870e0c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 03c35e95fc852e44f446780d9137fe4c9a3f2ebe)
Diffstat (limited to 'docker/smoke/Dockerfile')
-rw-r--r-- | docker/smoke/Dockerfile | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/docker/smoke/Dockerfile b/docker/smoke/Dockerfile index ef49c4f4f..a00ddac9c 100644 --- a/docker/smoke/Dockerfile +++ b/docker/smoke/Dockerfile @@ -34,18 +34,12 @@ RUN apk --no-cache add --virtual .build-deps --update \ wget -q -O /etc/glance/policy.json https://git.openstack.org/cgit/openstack/glance/plain/etc/policy.json?h=$OPENSTACK_TAG && \ virtualenv --no-pip --no-setuptools --no-wheel oslo && . oslo/bin/activate && \ pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \ - oslo.policy -e git+https://git.openstack.org/openstack/neutron.git@$OPENSTACK_TAG#egg=neutron \ - -e git+https://git.openstack.org/openstack/cinder.git@$OPENSTACK_TAG#egg=cinder \ - -e git+https://git.openstack.org/openstack/keystone.git@$OPENSTACK_TAG#egg=keystone \ - -e git+https://git.openstack.org/openstack/nova.git@$OPENSTACK_TAG#egg=nova && \ - oslopolicy-sample-generator --format json --output-file /etc/cinder/policy.json --namespace cinder && \ - oslopolicy-sample-generator --format json --output-file /etc/keystone/policy.json --namespace keystone && \ + oslo.policy -e git+https://git.openstack.org/openstack/neutron.git@$OPENSTACK_TAG#egg=neutron && \ oslopolicy-sample-generator --format json --output-file /etc/neutron/policy.json --namespace neutron && \ - oslopolicy-sample-generator --format json --output-file /etc/nova/policy.json --namespace nova && \ deactivate && \ rm -r oslo upper-constraints.txt upper-constraints.opnfv.txt \ /src/patrole /src/barbican-tempest-plugin \ - /src/cinder /src/keystone /src/neutron /src/nova && \ + /src/neutron && \ apk del .build-deps COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml CMD ["run_tests", "-t", "all"] |