Skip to content

Commit

Permalink
build(docker): reporter-service
Browse files Browse the repository at this point in the history
Instructions to build & run Reporter Service
  • Loading branch information
BrianLusina committed Jun 2, 2020
1 parent d69ba65 commit ec32ab8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Dockerfile.reporter
Original file line number Diff line number Diff line change
@@ -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}
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@ services:
environment:
REPOSITORY: ${REPOSITORY}
command: ["python", "run_test_runner.py", "--repo", "$REPOSITORY", "--dispatcher-server", "observer:8000"]


reporter:
build:
context: .
dockerfile: Dockerfile.reporter
container_name: reporter
ports:
- 8555:8555
environment:
PORT: "8555"
command: ["python", "run_reporter_service.py", "--port", "$PORT"]

0 comments on commit ec32ab8

Please sign in to comment.