Publish Functest Kubernetes Iruya
[functest-kubernetes.git] / docker / core / Dockerfile
1 FROM golang:1.12.1-alpine3.9
2
3 ARG BRANCH=stable/iruya
4 ARG OPENSTACK_TAG=stable/stein
5 ARG OPNFV_TAG=stable/iruya
6
7 RUN apk --no-cache add --update python py-pip bash git grep && \
8     apk --no-cache add --virtual .build-deps --update \
9         python-dev build-base && \
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     pip install \
15         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
16         -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
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     apk del .build-deps
22 COPY logging.ini /usr/lib/python2.7/site-packages/xtesting/ci/logging.ini
23 CMD ["run_tests", "-t", "all"]