move tests to a Docker container

This commit is contained in:
Sergey Dudoladov
2019-05-10 17:00:16 +02:00
parent 084167ff35
commit 407b2cab41
10 changed files with 41 additions and 78 deletions
+8 -10
View File
@@ -1,18 +1,16 @@
FROM ubuntu:18.04
MAINTAINER Team ACID @ Zalando <team-acid@zalando.de>
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
WORKDIR /e2e
COPY e2e/requirements.txt ./
COPY e2e/manifests ./manifests
COPY e2e/tests ./tests
COPY e2e/kind-config-kind-smoke-test-postgres-operator /root/.kube/config
COPY manifests ./manifests
COPY e2e/requirements.txt e2e/tests ./
RUN apt-get update
RUN apt-get install -y python3 python3-pip curl \
&& pip3 install --no-cache-dir -r requirements.txt
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl \
RUN apt-get update \
&& apt-get install -y python3 python3-pip curl \
&& pip3 install --no-cache-dir -r requirements.txt \
&& curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl \
&& mv ./kubectl /usr/local/bin/kubectl
CMD ["python3", "-m", "unittest", "discover", "--start-directory", "tests", "-v"]
CMD ["python3", "-m", "unittest", "discover", "--start-directory", ".", "-v"]