-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestrunner.Dockerfile
29 lines (27 loc) · 1006 Bytes
/
testrunner.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM gsoci.azurecr.io/giantswarm/app-test-suite:latest
ARG ATS_DIR="/ats"
RUN pip install --no-cache-dir pipenv=="${PIPENV_VER}"
RUN apt-get update && apt-get install -y wget xz-utils git && rm -rf /var/lib/apt/lists/*
RUN wget -qO- "https://github.com/koalaman/shellcheck/releases/download/latest/shellcheck-latest.linux.x86_64.tar.xz" | tar -xJv && cp "shellcheck-latest/shellcheck" /usr/bin/
WORKDIR $ATS_DIR
COPY .bandit .
COPY .coveragerc .
COPY .flake8 .
COPY .mypy.ini .
COPY .pre-commit-config.yaml .
COPY .markdownlintignore .
COPY .markdownlint.yaml .
COPY pyproject.toml .
COPY run-tests-in-docker.sh .
COPY setup.py .
COPY README.md .
COPY Pipfile .
COPY Pipfile.lock .
COPY tests/ tests/
COPY examples/ examples/
COPY .git/ ./.git/
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy --clear --dev
RUN git config --global --add safe.directory /ats
RUN pipenv run pre-commit run -a
ENTRYPOINT ["./run-tests-in-docker.sh"]
CMD ["--cov", "app_test_suite", "--log-cli-level", "info", "tests/"]