-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 simple dockerfile #4831
add simple dockerfile #4831
Conversation
Not criticism, pure curiosity. What advantage does docker have over a python venv? |
I don't know if either is better per se, but both have their use cases.
I'm sure some other stuff too. Nothing stoping someone from just running the pip install command still. I mean heck, that's what the dockerfile is doing under the hood. |
changed youtube_dl to yt-dlp and combined install line Co-authored-by: Jouni Järvinen <[email protected]>
There have been two other Dockerfile PRs in the past (#192, #1229) and I rejected them both, but I guess I'll merge this onc because why not.
There are many other resources out there that explain this. Then again, (some) people seem to have the greatest difficulties using a search engine to find information about topics they might need to effectively use gallery-dl, judging from some of the issues opened here. |
Co-authored-by: Mike Fährmann <[email protected]>
Would you like me to add a brief few sentence how-to on how to biuld and generic run command for the readme? Where they would need to mount the host volumes in the container may not be immediately obvious to someone: -v $HOME/Downloads/:/gallery-dl/ |
I guess it wouldn't hurt. |
It would be cool if the Docker Image would be pushed to the GitHub Container Registry. Currently, I'm using my own image published to GHCR and Docker Hub: https://github.com/Skaronator/docker-gallery-dl |
I've never really done much with Docker, so who knows if I got this right, but I |
I made an attempt to write a github actions workflow to build a docker image and push it it dockerhub and ghcr when pushing a commit with a version tag. (43ca49c) The first mistake in it was adding these two lines as gallery-dl/.github/workflows/docker.yml Lines 5 to 6 in 99b7662
The next problem is that it for some reason failed to push to ghcr.
Does anyone have a clue why this didn't work? |
Looks like you are using the wrong GitHub token. https://stackoverflow.com/a/66903734 Additionally, I would recommend that the latest Tag points to the last stable Release and you can use an "edge" or "dev" or "unstable" Tag for every build in the master branch. |
- run only on tagged commits and not on every commit to master - use the correct github token
I hope this fixes it: d1ea60c
That's how it was supposed to work, but I misunderstood how
I don't think that's possible with the current Dockerfile since it pulls from PyPI. |
Wait, so this doesn't actually make a difference? edit: |
This adds a simple dockerfile that a user can use to build the project locally on podman or docker. It adds a couple of deps that may be necessary for downloading galleries like ffmpeg and yt-download. If there are additional dep's you think should be added let me know and I can adjust the PR.
If this is accepted I can also add a how-to for running this as you will probably want to mount some local directories for the download location or config files so they can make it back up to the host.