Move shaker and vmtp into functest-benchmarking
[functest.git] / docker / smoke / Dockerfile
1 FROM opnfv/functest-tempest
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=stable/queens
5 ARG REFSTACK_TARGET=2018.02
6 ARG PATROLE_TAG=0.3.0
7 ARG NEUTRON_TAG=d307f5635d4015e7842a4a177f66c76ba4bd818a
8 ARG BARBICAN_TAG=b8bf147bdcdd33f3ad276ca8815fd253ec9b24af
9
10 RUN apk --no-cache add --virtual .build-deps --update \
11         python-dev build-base linux-headers libffi-dev \
12         openssl-dev libjpeg-turbo-dev && \
13     wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
14         sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/git.openstack.org\\/openstack\\/tempest@\\1#egg=tempest/ \
15         > upper-constraints.txt && \
16     wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH | \
17         sed -E /#egg=functest/d > upper-constraints.opnfv.txt && \
18     git clone --depth 1 https://git.openstack.org/openstack/patrole.git /src/patrole && \
19     (cd /src/patrole && git fetch --tags origin $PATROLE_TAG && git checkout FETCH_HEAD) && \
20     update-requirements -s --source /src/openstack-requirements /src/patrole/ && \
21     git clone https://git.openstack.org/openstack/neutron-tempest-plugin.git /src/neutron-tempest-plugin && \
22     (cd /src/neutron-tempest-plugin && git fetch --tags origin $NEUTRON_TAG && git checkout FETCH_HEAD) && \
23     update-requirements -s --source /src/openstack-requirements /src/neutron-tempest-plugin && \
24     git clone https://git.openstack.org/openstack/barbican-tempest-plugin.git /src/barbican-tempest-plugin && \
25     (cd /src/barbican-tempest-plugin && git fetch --tags origin $BARBICAN_TAG && git checkout FETCH_HEAD) && \
26     update-requirements -s --source /src/openstack-requirements /src/barbican-tempest-plugin/ && \
27     pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
28         /src/patrole /src/barbican-tempest-plugin /src/neutron-tempest-plugin \
29         networking-bgpvpn networking-sfc && \
30     rm -r upper-constraints.txt upper-constraints.opnfv.txt \
31         /src/patrole /src/barbican-tempest-plugin /src/neutron-tempest-plugin && \
32     mkdir -p /home/opnfv/functest/data/refstack && \
33     wget "https://refstack.openstack.org/api/v1/guidelines/${REFSTACK_TARGET}/tests?target=compute&type=required&alias=true&flag=false" \
34         -O /home/opnfv/functest/data/refstack/defcore.txt && \
35     mkdir -p /etc/neutron /etc/glance && \
36     wget -q -O /etc/neutron/policy.json https://git.openstack.org/cgit/openstack/neutron/plain/etc/policy.json?h=$OPENSTACK_TAG && \
37     wget -q -O /etc/glance/policy.json https://git.openstack.org/cgit/openstack/glance/plain/etc/policy.json?h=$OPENSTACK_TAG && \
38     apk del .build-deps
39 COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
40 CMD ["run_tests", "-t", "all"]