generated from giantswarm/python-app-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
testrunner.Dockerfile
27 lines (25 loc) · 984 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
FROM gsoci.azurecr.io/giantswarm/app-catalog-cleanup-tool:latest
ARG ACCT_DIR="/acct"
RUN pip install --no-cache-dir -U pipenv
RUN apt-get update && apt-get install -y wget git xz-utils && 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 $ACCT_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/
RUN git init && git config --global --add safe.directory /acct
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy --clear --dev
RUN pipenv run pre-commit run -a
ENTRYPOINT ["./run-tests-in-docker.sh"]
CMD ["--cov", "app_catalog_cleanup_tool", "--log-cli-level", "info", "tests/"]