Merge in RR/pyinfra from partial_responses to master
Squashed commit of the following:
commit afd67d87a6349c4b97453a12274c6ccf5e976339
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Tue Apr 26 12:48:12 2022 +0200
updated test container dockerfile for new location of tests directory
commit 37881da08ebedf0f2d0c6c2b267bdb47818a0da1
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Tue Apr 26 12:45:12 2022 +0200
restructuring: moved test out of module scope
20 lines
472 B
Plaintext
Executable File
20 lines
472 B
Plaintext
Executable File
ARG BASE_ROOT="nexus.iqser.com:5001/red/"
|
|
ARG VERSION_TAG="dev"
|
|
|
|
FROM ${BASE_ROOT}pyinfra:${VERSION_TAG}
|
|
|
|
EXPOSE 5000
|
|
EXPOSE 8080
|
|
|
|
RUN python3 -m pip install coverage
|
|
|
|
# Make a directory for the service files and copy the service repo into the container.
|
|
WORKDIR /app/service
|
|
COPY . .
|
|
|
|
# Install module & dependencies
|
|
RUN python3 -m pip install -e .
|
|
RUN python3 -m pip install -r requirements.txt
|
|
|
|
CMD coverage run -m pytest test/ -x && coverage report -m && coverage xml
|