Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile for Schedule Notifier and GitHub Worker #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/github_worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.6-alpine

RUN pip install requests redis pika

EXPOSE 5672 6380

COPY github_worker.py /src/github_worker.py

WORKDIR /src

ENV RABBIT_HOST=127.0.0.1 \
RABBIT_PORT=15672 \
RABBIT_USER=guest \
RABBIT_PASSWORD=guest \
RABBIT_VHOST=/

ENTRYPOINT ["python", "github_worker.py"]
17 changes: 17 additions & 0 deletions src/notifier/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.6-alpine

RUN pip install redis pika

EXPOSE 5672 6380

COPY schedule_notify.py /src/schedule_notify.py

WORKDIR /src

ENV RABBIT_HOST=127.0.0.1 \
RABBIT_PORT=15672 \
RABBIT_USER=guest \
RABBIT_PASSWORD=guest \
RABBIT_VHOST=/

ENTRYPOINT ["python", "schedule_notify.py"]