-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add subscriber polling and dockerfile
- Loading branch information
1 parent
8673fe0
commit fbfed37
Showing
3 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM python:3.9.17-slim-buster | ||
|
||
ENV LOG_LEVEL=INFO | ||
|
||
# Set the working directory to /app/pywis-pubsub | ||
WORKDIR /app/pywis-pubsub | ||
|
||
# first install requirements to speed up rebuilds | ||
COPY requirements.txt /app/pywis-pubsub | ||
RUN pip3 install -r requirements.txt | ||
|
||
# Copy the current directory contents into the container at /app/pywis-pubsub | ||
COPY . /app/pywis-pubsub | ||
|
||
# install pywis-pubsub | ||
RUN python3 setup.py install | ||
|
||
# run pywis-pubsub subscribe | ||
CMD pywis-pubsub subscribe --config /tmp/local.yml --verbosity $LOG_LEVEL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters