diff --git a/Dockerfile.reporter b/Dockerfile.reporter new file mode 100644 index 0000000..8651b34 --- /dev/null +++ b/Dockerfile.reporter @@ -0,0 +1,14 @@ +FROM python:3.8.1-alpine3.11 + +WORKDIR /usr/src/app + +COPY Pipfile Pipfile +COPY run_reporter_service.py run_reporter_service.py +COPY ci/__init__.py ci/__init__.py +COPY ci/reporter ci/reporter +COPY ci/logger.py ci/logger.py +COPY ci/utils.py ci/utils.py + +RUN pip install loguru + +EXPOSE ${PORT} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c178936..d89ae3a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,4 +33,14 @@ services: environment: REPOSITORY: ${REPOSITORY} command: ["python", "run_test_runner.py", "--repo", "$REPOSITORY", "--dispatcher-server", "observer:8000"] - \ No newline at end of file + + reporter: + build: + context: . + dockerfile: Dockerfile.reporter + container_name: reporter + ports: + - 8555:8555 + environment: + PORT: "8555" + command: ["python", "run_reporter_service.py", "--port", "$PORT"]