-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b7d0bb
commit 593ea38
Showing
3 changed files
with
29 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 |
---|---|---|
|
@@ -61,14 +61,19 @@ All args can be read from environment variables, the environment variables with | |
|
||
## Docker Usage | ||
|
||
Run as service and periodically scan new wallpaper: | ||
Run as service and periodically scan new wallpaper. | ||
|
||
|
||
Note that bing-dl runs as UID 1000 and GID 1000 by default. These may be altered with the `PUID` and `PGID` environment variables. | ||
|
||
```shell | ||
docker run -d \ | ||
-e BING_SCAN_INTERVAL=3600 \ | ||
-e [email protected] \ | ||
-e [email protected] \ | ||
-e BING_NOTIFY_USER_PASS=password \ | ||
-e PUID=1000 \ | ||
-e PGID=1000 \ | ||
-v /path/to/storage/folder:/bing/storage \ | ||
-v /path/to/download/folder:/bing/download \ | ||
littleneko/bing-dl:latest | ||
|
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,16 @@ | ||
#! /bin/sh | ||
|
||
set -eu | ||
|
||
PUID=${PUID:-1000} | ||
PGID=${PGID:-1000} | ||
|
||
if ! getent group "$PGID" >/dev/null; then | ||
groupadd -g "$PGID" bing | ||
fi | ||
|
||
if ! getent passwd "$PUID" >/dev/null; then | ||
useradd -u "$PUID" -g "$PGID" -m bing | ||
fi | ||
|
||
exec gosu "$PUID":"$PGID" "$@" |