4 ARG OPENSTACK_TAG=stable/ocata
6 RUN apk --no-cache add --update \
7 python libffi libssl1.0 libjpeg-turbo py-pip bash \
8 grep sed wget ca-certificates git && \
9 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 --src /src -cupper-constraints.txt \
16 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
17 git+https://gerrit.opnfv.org/gerrit/functest@$BRANCH#egg=functest && \
18 rm upper-constraints.txt && \
19 mkdir -p /etc/rally && \
20 printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \
21 mkdir -p /var/lib/rally/database && rally-manage db create && \
22 bash -c "mkdir -p /home/opnfv/functest{/conf,/data,/images,/results} /home/opnfv/repos/vnfs" && \