-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from BlipRanger/testing
1.2 Merge
- Loading branch information
Showing
6 changed files
with
221 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM python:3.9 | ||
|
||
RUN apt-get update | ||
RUN apt-get install ffmpeg -y | ||
|
||
COPY ./requirements.txt requirements.txt | ||
COPY ./bdfrToHTML.py bdfrToHTML.py | ||
COPY ./style.css style.css | ||
COPY ./start.py start.py | ||
|
||
ENV BDFR_FREQ=15 | ||
ENV BDFR_IN=/input | ||
ENV BDFR_OUT=/output | ||
ENV BDFR_RECOVER_COMMENTS=True | ||
ENV BDFR_ARCHIVE_CONTEXT=True | ||
ENV BDFR_LIMIT=1100 | ||
ENV RUN_BDFR=False | ||
ENV BDFRH_DELETE=False | ||
ENV BDFRH_LOGLEVEL=INFO | ||
|
||
EXPOSE 5000 | ||
EXPOSE 7634 | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
RUN mkdir input | ||
RUN mkdir output | ||
RUN mkdir config | ||
|
||
CMD python start.py |
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
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,28 @@ | ||
version: '3' | ||
services: | ||
bdfr-html: #Container which runs both bdfr and bdfr-html | ||
container_name: bdfr-html | ||
build: . #Builds from current folder, could also build from git repo | ||
environment: #Defaults are defined in the Dockerfile | ||
- BDFR_LIMIT=15 #Number of saved posts to download | ||
- BDFR_RECOVER_COMMENTS=False #Should bdfr-html try to recover deleted comments from pushshift? | ||
- BDFR_FREQ=15 #How often should we pull saved content from reddit | ||
- BDFR_OUT=/output #What folder internal to the container should the created files go | ||
- BDFR_IN=/input #Where should bdfr place files pulled from reddit | ||
- BDFR_ARCHIVE_CONTEXT=True #Should bdfr-html also get post associated with saved comments | ||
- RUN_BDFR=True #Run bdfr each time before running bdfr-html | ||
- BDFRH_DELETE=False #Delete input media files after copying them to the media folder | ||
- BDFRH_LOGLEVEL=INFO #Either INFO or DEBUG for more verbose logs | ||
volumes: | ||
- output:/output #Shared docker volume between the script container and the webserver, could also be mounted | ||
- ./config:/root/.config/bdfr/ #Mounted folder where the bdfr config file lives | ||
apache: #Standard webserver serving the content located in the BDFR_OUT var | ||
image: httpd:alpine | ||
container_name: bdfr-server | ||
ports: | ||
- "80:80" #Ports can be redefined as needed | ||
volumes: | ||
- output:/usr/local/apache2/htdocs/ #This should match the output volume or mount in the script container | ||
|
||
volumes: | ||
output: |
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,11 @@ | ||
click==7.1.2 | ||
Markdown==3.3.4 | ||
appdirs>=1.4.4 | ||
bs4>=0.0.1 | ||
dict2xml>=1.7.0 | ||
ffmpeg-python>=0.2.0 | ||
praw>=7.2.0 | ||
pyyaml>=5.4.1 | ||
requests>=2.25.1 | ||
youtube-dl>=2021.3.14 | ||
bdfr==2.1.0 |
Oops, something went wrong.