Skip to content

Commit e23604a

Browse files
committed
Rebase to 3.21
1 parent 02c653f commit e23604a

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM ghcr.io/linuxserver/unrar:latest AS unrar
44

5-
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
5+
FROM ghcr.io/linuxserver/baseimage-alpine:3.21
66

77
# set version label
88
ARG BUILD_DATE

Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
44

5-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
5+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21
66

77
# set version label
88
ARG BUILD_DATE

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ Similarly to the WEBUI_PORT, to set the port to 6887 you need to pass -p 6887:68
9090

9191
This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).
9292

93+
## Non-Root Operation
94+
95+
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
96+
9397
## Usage
9498

9599
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -157,6 +161,7 @@ Containers are configured using parameters passed at runtime (such as those abov
157161
| `-v /config` | Contains all relevant configuration files. |
158162
| `-v /downloads` | Location of downloads on disk. |
159163
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
164+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
160165

161166
## Environment variables from files (Docker secrets)
162167

@@ -320,6 +325,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
320325

321326
## Versions
322327

328+
* **20.12.24:** - Rebase to Alpine 3.21.
323329
* **17.07.24:** - Restore qbittorrent-cli as it now supports openssl 3.
324330
* **25.05.24:** - Rebase to Alpine 3.20, remove qbittorrent-cli as it still requires openssl 1.1 which is EOL.
325331
* **14.02.24:** - Only set/override torrenting port if the optional env var is set.

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ opt_param_usage_include_vols: true
3434
opt_param_volumes:
3535
- {vol_path: "/downloads", vol_host_path: "/path/to/downloads", desc: "Location of downloads on disk."}
3636
readonly_supported: true
37+
nonroot_supported: true
3738
# application setup block
3839
app_setup_block_enabled: true
3940
app_setup_block: |
@@ -99,6 +100,7 @@ init_diagram: |
99100
"qbittorrent:libtorrentv1" <- Base Images
100101
# changelog
101102
changelogs:
103+
- {date: "20.12.24:", desc: "Rebase to Alpine 3.21."}
102104
- {date: "17.07.24:", desc: "Restore qbittorrent-cli as it now supports openssl 3."}
103105
- {date: "25.05.24:", desc: "Rebase to Alpine 3.20, remove qbittorrent-cli as it still requires openssl 1.1 which is EOL."}
104106
- {date: "14.02.24:", desc: "Only set/override torrenting port if the optional env var is set."}

root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/run

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ if [[ ! -f /config/qBittorrent/qBittorrent.conf ]]; then
99
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
1010
fi
1111

12-
# chown download directory if currently not set to abc
13-
if grep -qe ' /downloads ' /proc/mounts; then
14-
lsiown abc:abc /downloads
15-
fi
12+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
13+
# chown download directory if currently not set to abc
14+
if grep -qe ' /downloads ' /proc/mounts; then
15+
lsiown abc:abc /downloads
16+
fi
1617

17-
# permissions
18-
lsiown -R abc:abc \
19-
/config
18+
# permissions
19+
lsiown -R abc:abc \
20+
/config
21+
fi

root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ if [[ -z ${WEBUI_ADDRESS} ]] || [[ ${WEBUI_ADDRESS} == "*" ]]; then
1111
WEBUI_ADDRESS="localhost"
1212
fi
1313

14-
exec \
15-
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z ${WEBUI_ADDRESS} ${WEBUI_PORT}" \
16-
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" ${TORRENTING_PORT_ARG}
14+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
15+
exec \
16+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z ${WEBUI_ADDRESS} ${WEBUI_PORT}" \
17+
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" ${TORRENTING_PORT_ARG}
18+
else
19+
exec \
20+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z ${WEBUI_ADDRESS} ${WEBUI_PORT}" \
21+
/app/qbittorrent-nox --webui-port="${WEBUI_PORT}" ${TORRENTING_PORT_ARG}
22+
fi

0 commit comments

Comments
 (0)