Disable perm check
[functest-kubernetes.git] / docker / core / Dockerfile
1 FROM golang:1.13-alpine3.11
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=master
5 ARG OPNFV_TAG=master
6
7 RUN apk --no-cache add --update python3 bash git grep libffi openssl mailcap && \
8     apk --no-cache add --virtual .build-deps --update \
9         python3-dev build-base libffi-dev openssl-dev && \
10     git init /src/functest-kubernetes && \
11     (cd /src/functest-kubernetes && \
12         git fetch --tags https://gerrit.opnfv.org/gerrit/functest-kubernetes $BRANCH && \
13         git checkout FETCH_HEAD) && \
14     pip3 install \
15         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
16         -chttps://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt \
17         /src/functest-kubernetes && \
18     rm -rf /src/functest-kubernetes && \
19     bash -c "mkdir -p /var/lib/xtesting /home/opnfv" && \
20     ln -s /var/lib/xtesting /home/opnfv/functest && \
21     mkdir -p /etc/rally && \
22     printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \
23     mkdir -p /var/lib/rally/database && rally db create && \
24     apk del .build-deps
25 COPY logging.ini /usr/lib/python3.8/site-packages/xtesting/ci/logging.ini
26 COPY logging.debug.ini /usr/lib/python3.8/site-packages/xtesting/ci/logging.debug.ini
27 CMD ["run_tests", "-t", "all"]