-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(webui): migrate docker to lsio base
- Loading branch information
Showing
6 changed files
with
70 additions
and
25 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,5 @@ | ||
--- | ||
"deemix-webui": minor | ||
--- | ||
|
||
Docker image now correctly sets permissions and supports additional functionality due to being based on lsio/base |
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,19 @@ | ||
#!/usr/bin/with-contenv bash | ||
# shellcheck disable=SC1008 | ||
|
||
printf '[cont-init.d] Fixing Folder Permissions - Config Folder\n' | ||
|
||
chown -R abc:abc /config | ||
|
||
if [ -n "${DISABLE_OWNERSHIP_CHECK}" ]; then | ||
printf '[cont-init.d] Download Folder Ownership Check disabled by Environment Variable\n' | ||
else | ||
printf '[cont-init.d] Fixing Folder Permissions - Downloads Folder\n' | ||
find /downloads -type d -exec chown abc:abc {} + | ||
fi | ||
|
||
# Fix misconfigured download locations. The container's download map is always /downloads. | ||
if [ -f "/config/config.json" ]; then | ||
jq '.downloadLocation = "/downloads"' /config/config.json >tmp.$$.json && mv tmp.$$.json /config/config.json | ||
chown abc:abc /config/config.json | ||
fi |
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,23 @@ | ||
#!/usr/bin/with-contenv bash | ||
# shellcheck disable=SC1008 | ||
|
||
printf '[cont-init.d] Testing Access\n' | ||
|
||
if [ -w "/downloads" ]; then | ||
printf '%-50s %2s %-5s \n' "[cont-init.d] Download Folder Write Access" ":" "Success" | ||
else | ||
printf '%-50s %2s %-5s \n' "[cont-init.d] Download Folder Write Access" ":" "Failure" | ||
fi | ||
|
||
if [ -w "/config" ]; then | ||
printf '%-50s %2s %-5s \n' "[cont-init.d] Config Folder Write Access" ":" "Success" | ||
else | ||
printf '%-50s %2s %-5s \n' "[cont-init.d] Config Folder Write Access" ":" "Failure" | ||
fi | ||
|
||
until curl --fail -sf www.deezer.com; do | ||
printf '%-50s %2s %-5s \n' "[cont-init.d] Internet Access" ":" "Failure. Trying again in 5 seconds" | ||
sleep 5 | ||
done | ||
|
||
printf '%-50s %2s %-5s \n' "[cont-init.d] Internet Access" ":" "Success" |
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,8 @@ | ||
#!/usr/bin/with-contenv bash | ||
# shellcheck disable=SC1008 | ||
|
||
UMASK_SET=${UMASK_SET:-022} | ||
umask "$UMASK_SET" | ||
|
||
echo "[services.d] Starting Deemix" | ||
s6-setuidgid abc node /app/webui/dist/main.js |