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