Using BDFR with Docker / Dockerfile example #645
Replies: 1 comment 2 replies
-
Are you familiar with docker? From this question, it doesn't seem like you are, but I'm not as confident with it either. I can create an example Dockerfile soon but at a glance, I don't think you're using the volumes correctly. When you're running the volume option, the first argument is the attachment point inside the docker VM, and the second argument is the attachment in the real filesystem. So in the command you gave, I believe that you're attaching the folder If that doesn't work, I'll have to experiment when I'm writing the additional documentation. |
Beta Was this translation helpful? Give feedback.
-
Thanks for creating such a useful tool! The app works perfectly for me when installed via pip and run on my terminal, but I'd like to move the code to my Synology NAS through Docker. After running the below Dockerfile, my terminal updates to show the files being downloaded. However, I can't ultimately find the downloaded files after the program completes. Do you by chance have an example of a Dockerfile / run command to show how this should work? I'm not sure if I'm missing anything about how to convert this for use with Docker. Thanks!
Dockerfile:
FROM python:3.10-rc-slim
RUN python -m pip install \ bdfr \ IPTCInfo3
CMD ["python", "-m", "bdfr", "download", "./pics-folder", "--subreddit", "pics", "-L", "5", "--file-scheme", "'{SUBREDDIT}--{REDDITOR}--{TITLE}'"]
Command that I run in terminal:
docker run -v bdfr-volume:/Users/myusername/bdfr-folder -it --rm bdfr
Beta Was this translation helpful? Give feedback.
All reactions