2020-05-10 21:03:30 +00:00
|
|
|
# Testing with python 3.7
|
2016-12-05 22:30:52 +00:00
|
|
|
|
2020-05-10 21:03:30 +00:00
|
|
|
FROM python:3.7
|
|
|
|
ENV POETRY_VIRTUALENVS_CREATE=false
|
2016-12-05 22:30:52 +00:00
|
|
|
|
2020-05-10 21:03:30 +00:00
|
|
|
|
|
|
|
RUN pip install poetry
|
2016-12-05 22:30:52 +00:00
|
|
|
|
|
|
|
RUN adduser --uid 1009 --system testuser
|
|
|
|
RUN addgroup --gid 1010 testgroup
|
|
|
|
|
|
|
|
ENV PYTHONPATH /opt/
|
|
|
|
|
|
|
|
ADD tests/test_template.yml.tpl /tmp/test_template.yml
|
|
|
|
ADD tests/test_template.yml.tpl /tmp/test_template2.yml.tpl
|
2020-05-10 21:03:30 +00:00
|
|
|
COPY pyproject.toml poetry.lock /opt/
|
|
|
|
|
|
|
|
RUN cd /opt && poetry install
|
|
|
|
|
2016-12-05 22:30:52 +00:00
|
|
|
|
|
|
|
WORKDIR /opt/tests
|
|
|
|
|
2020-05-10 21:03:30 +00:00
|
|
|
CMD ["pytest", "--verbose", "-rw", "."]
|