1 FROM opnfv/functest-core
5 ARG OPENSTACK_TAG=stable/pike
6 ARG RALLY_TAG=stable/0.10
7 ARG OS_FAULTS_TAG=0.1.16
9 RUN apk --no-cache add --virtual .build-deps --update \
10 python-dev build-base linux-headers libffi-dev \
11 openssl-dev libjpeg-turbo-dev && \
12 wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
13 sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/github.com\\/openstack\\/tempest@\\1#egg=tempest/ \
14 > upper-constraints.txt && \
15 pip install --no-cache-dir --src /src -cupper-constraints.txt \
16 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
17 -e git+https://github.com/openstack/requirements@$OPENSTACK_TAG#egg=openstack_requirements && \
18 git clone --depth 1 https://github.com/openstack/os-faults.git -b $OS_FAULTS_TAG /src/os-faults && \
19 update-requirements -s --source /src/openstack-requirements /src/os-faults/ && \
20 git clone --depth 1 https://github.com/openstack/rally.git -b $RALLY_TAG /src/rally && \
21 update-requirements -s --source /src/openstack-requirements /src/rally/ && \
22 git clone https://github.com/openstack/patrole.git /src/patrole && \
23 (cd /src/patrole && git checkout $PATROLE_TAG) && \
24 update-requirements -s --source /src/openstack-requirements /src/patrole/ && \
25 pip install --no-cache-dir --src /src -cupper-constraints.txt \
26 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
27 tempest /src/os-faults && \
28 pip install --no-cache-dir --src /src -cupper-constraints.txt \
29 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
30 oslotest /src/patrole /src/rally && \
31 mkdir -p /etc/rally && \
32 printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \
33 mkdir -p /var/lib/rally/database && rally db create && \
34 rm -r upper-constraints.txt /src/os-faults /src/rally && \
36 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
37 CMD ["run_tests", "-t", "all"]