Remove rally and tempest from core/Dockerfile
[functest.git] / docker / components / Dockerfile
1 FROM opnfv/functest-core
2
3 # useless build arg forced by releng/jjb/releng/opnfv-docker.sh
4 ARG BRANCH=master
5 ARG OPENSTACK_TAG=stable/pike
6 ARG RALLY_TAG=stable/0.10
7
8 RUN apk --no-cache add --virtual .build-deps --update \
9         python-dev build-base linux-headers libffi-dev \
10         openssl-dev libjpeg-turbo-dev && \
11     wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
12         sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/github.com\\/openstack\\/tempest@\\1#egg=tempest/ \
13         > upper-constraints.txt && \
14     git clone --depth 1 https://github.com/openstack/rally.git -b $RALLY_TAG /src/rally && \
15     update-requirements -s --source /src/openstack-requirements /src/rally/ && \
16     pip install --no-cache-dir --src /src -cupper-constraints.txt \
17         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
18         /src/rally && \
19     pip install --no-cache-dir --src /src -cupper-constraints.txt \
20         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
21         tempest && \
22     rm -r upper-constraints.txt /src/rally && \
23     mkdir -p /etc/rally && \
24     printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \
25     mkdir -p /var/lib/rally/database && rally-manage db create && \
26     apk del .build-deps
27 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
28 CMD ["bash","-c","prepare_env start && run_tests -t all"]