Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a Dockerfile that allows you to run the downloader without having to install
nodejsor add a global package. It defines a docker volume at/downloadsthat you can mount to where you want your wallpapers to be downloaded.To build the docker image, clone the repo and then execute the following command inside the cloned repo:
The
uidandgidarguments are optional, but I recommend using them so your wallpapers are created using your own user and group instead ofroot.After building the image, you can run the downloader using the following command:
This will download 1 image in the current directory. If you want to download more than one image, you can pass the number to the run command. This will download 10 images:
I couldn't figure out a way to change the resolution and still keep the nice exec form for
ENTRYPOINT, since it doesn't do argument substitution. If I think of a way around that, I will add it and update. Right now, the default resolution is1920x1080, and I'm afraid you have to modify and build the Dockerfile if you need a different resolution.I hope this is helpful for others too.