mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 18:41:41 +02:00
run e2e in a separate Docker image, 1st commit
This commit is contained in:
+13
-4
@@ -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"]
|
||||
Reference in New Issue
Block a user