mirror of
https://gitlab.com/Bockiii/deemix-docker.git
synced 2024-08-30 17:32:18 +00:00
Compare commits
7 Commits
2022.5.28-
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
39c574f685 | ||
|
220567ece1 | ||
|
3827197960 | ||
|
e671ac563a | ||
|
33e1e9b253 | ||
|
f79614f40c | ||
|
8f0b9af270 |
@ -108,7 +108,7 @@ build-docker-image:
|
||||
script:
|
||||
# Download latest buildx bin from github
|
||||
- mkdir -p ~/.docker/cli-plugins/
|
||||
- BUILDX_LATEST_BIN_URI=$(curl -s -L https://github.com/docker/buildx/releases/latest | grep 'linux-amd64' | grep 'href' | sed 's/.*href="/https:\/\/github.com/g; s/amd64".*/amd64/g')
|
||||
- BUILDX_LATEST_BIN_URI=$(curl -s -L https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.assets[].browser_download_url | select( . | contains("linux-amd64"))')
|
||||
- curl -s -L ${BUILDX_LATEST_BIN_URI} -o ~/.docker/cli-plugins/docker-buildx
|
||||
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
||||
# Get and run the latest docker/binfmt tag to use its qemu parts
|
||||
|
@ -52,9 +52,11 @@ Pull the latest container for the latest Deemix version
|
||||
| `-e PUID=1000` | OPTIONAL: User ID of the user you want the container to run as in order to fix folder permission issues |
|
||||
| `-e PGID=1000` | OPTIONAL: Group ID, see PUID |
|
||||
| `-e UMASK_SET=022` | OPTIONAL: Setting UMASK for file permissions Default is 022 |
|
||||
| `-e DEEMIX_LOCATION_BASE=/deemix/` | OPTIONAL: For subfolder reverse proxying, add the subdomain in this env variable |
|
||||
| `-e DEEMIX_SINGLE_USER=true` | OPTIONAL: Similar to the ARL functionality in previous iterations. See below for details |
|
||||
| `-p 6595:6595` | Port opened for the web interface |
|
||||
| `-e INTPORT=3333` | EXTRA OPTIONAL: This changes the internal port of deemix. DON'T CHANGE THIS IF YOU DONT KNOW WHY YOU WOULD DO IT |
|
||||
| `-e DISABLE_OWNERSHIP_CHECK=true` | EXTRA OPTIONAL: This disables the ownership check on the downloads folder. Can lead to download issues if the folder is not owned by the correct user. DON'T USE THIS IF YOU DONT KNOW WHY YOU WOULD NEED IT |
|
||||
| `registry.gitlab.com/bockiii/deemix-docker` | This container |
|
||||
|
||||
To access the web interface, go to http://YOURSERVERIP:6595
|
||||
|
@ -1,12 +1,18 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# test write access to download and config folder and test internet connectivity
|
||||
printf '[cont-init.d] Fixing Folder Permissions\n'
|
||||
printf '[cont-init.d] Fixing Folder Permissions - Config Folder\n'
|
||||
|
||||
chown -R abc:abc /config
|
||||
|
||||
# find all folders in the download folder and own them to the container user. This will not change files but should run quicker on big collections.
|
||||
find /downloads -type d -exec chown abc:abc {} +
|
||||
if [ ! -z ${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
|
||||
|
||||
|
||||
# add executability to server
|
||||
chmod +x /deemix-server
|
||||
|
Loading…
Reference in New Issue
Block a user