run e2e in a separate Docker image, 1st commit

This commit is contained in:
Sergey Dudoladov
2019-05-09 18:09:00 +02:00
parent 52e53f152f
commit 084167ff35
5 changed files with 54 additions and 19 deletions
+13 -4
View File
@@ -1,9 +1,18 @@
FROM python:3.5-slim
FROM ubuntu:18.04
MAINTAINER Team ACID @ Zalando <team-acid@zalando.de>
WORKDIR /e2e
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
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 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 \
&& chmod +x ./kubectl \
&& mv ./kubectl /usr/local/bin/kubectl
CMD ["python3", "-m", "unittest", "discover", "--start-directory", "tests", "-v"]