Update to Alpine 3.8
[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 clone --depth 1 https://gerrit.opnfv.org/gerrit/functest-kubernetes /src/functest-kubernetes && \
9     (cd /src/functest-kubernetes && git fetch --tags origin $BRANCH && git checkout FETCH_HEAD) && \
10     pip install \
11         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
12         -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
13         /src/functest-kubernetes && \
14     rm -rf /src/functest-kubernetes && \
15     bash -c "mkdir -p /var/lib/xtesting /home/opnfv" && \
16     ln -s /var/lib/xtesting /home/opnfv/functest
17 COPY logging.ini /usr/lib/python2.7/site-packages/xtesting/ci/logging.ini
18 CMD ["run_tests", "-t", "all"]