3 RUN apk --no-cache add --update \
4 python libffi libssl1.0 libjpeg-turbo py-pip bash \
5 grep sed wget ca-certificates git && \
6 apk --no-cache add --virtual .build-deps --update \
7 python-dev build-base linux-headers libffi-dev \
8 openssl-dev libjpeg-turbo-dev && \
9 wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata | \
10 sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/github.com\\/openstack\\/tempest@\\1#egg=tempest/ \
11 > upper-constraints.txt && \
12 pip install --src /src -cupper-constraints.txt \
13 git+https://gerrit.opnfv.org/gerrit/releng#egg=opnfv\&subdirectory=modules \
14 git+https://gerrit.opnfv.org/gerrit/snaps#egg=snaps \
15 git+https://gerrit.opnfv.org/gerrit/functest#egg=functest && \
16 rm upper-constraints.txt && \
17 mkdir -p /etc/rally && \
18 printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \
19 mkdir -p /var/lib/rally/database && rally-manage db create && \
20 bash -c "mkdir -p /home/opnfv/functest{/conf,/data,/images,/results} /home/opnfv/repos/vnfs" && \