5150c39343f9a050b9fb917453e3627f393b9f28
[functest-kubernetes.git] / docker / core / Dockerfile
1 FROM alpine:3.8
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=stable/queens
5 ARG OPNFV_TAG=master
6
7 RUN apk --no-cache add --update python py-pip bash git grep && \
8     git init /src/functest-kubernetes && \
9     (cd /src/functest-kubernetes && \
10         git fetch --tags https://gerrit.opnfv.org/gerrit/functest-kubernetes $BRANCH && \
11         git checkout FETCH_HEAD) && \
12     pip install \
13         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
14         -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
15         /src/functest-kubernetes && \
16     rm -rf /src/functest-kubernetes && \
17     bash -c "mkdir -p /var/lib/xtesting /home/opnfv" && \
18     ln -s /var/lib/xtesting /home/opnfv/functest
19 COPY logging.ini /usr/lib/python2.7/site-packages/xtesting/ci/logging.ini
20 CMD ["run_tests", "-t", "all"]