File tree Expand file tree Collapse file tree 8 files changed +42
-25
lines changed
root/etc/s6-overlay/s6-rc.d Expand file tree Collapse file tree 8 files changed +42
-25
lines changed Original file line number Diff line number Diff line change 2
2
3
3
FROM ghcr.io/linuxserver/unrar:latest AS unrar
4
4
5
- FROM ghcr.io/linuxserver/baseimage-alpine:3.20
5
+ FROM ghcr.io/linuxserver/baseimage-alpine:3.21
6
6
7
7
# set version label
8
8
ARG BUILD_DATE
44
44
pip install -U --no-cache-dir \
45
45
pip \
46
46
wheel && \
47
- pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20 / -r requirements.txt && \
47
+ pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.21 / -r requirements.txt && \
48
48
echo "**** build sab translations ****" && \
49
49
python3 tools/make_mo.py && \
50
50
echo "**** install par2cmdline-turbo from source ****" && \
Original file line number Diff line number Diff line change 2
2
3
3
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
4
4
5
- FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
5
+ FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21
6
6
7
7
# set version label
8
8
ARG BUILD_DATE
44
44
pip install -U --no-cache-dir \
45
45
pip \
46
46
wheel && \
47
- pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20 / -r requirements.txt && \
47
+ pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.21 / -r requirements.txt && \
48
48
echo "**** build sab translations ****" && \
49
49
python3 tools/make_mo.py && \
50
50
echo "**** install par2cmdline-turbo from source ****" && \
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pipeline {
35
35
CI_WEB = ' true'
36
36
CI_PORT = ' 8080'
37
37
CI_SSL = ' false'
38
- CI_DELAY = ' 60 '
38
+ CI_DELAY = ' 120 '
39
39
CI_DOCKERENV = ' '
40
40
CI_AUTH = ' '
41
41
CI_WEBPATH = ' '
Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ The folks over at servarr.com wrote a good [write-up](https://wiki.servarr.com/d
85
85
86
86
This image can be run with a read-only container filesystem. For details please [ read the docs] ( https://docs.linuxserver.io/misc/read-only/ ) .
87
87
88
+ ## Non-Root Operation
89
+
90
+ This image can be run with a non-root user. For details please [ read the docs] ( https://docs.linuxserver.io/misc/non-root/ ) .
91
+
88
92
## Usage
89
93
90
94
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -143,6 +147,7 @@ Containers are configured using parameters passed at runtime (such as those abov
143
147
| ` -v /downloads ` | Local path for finished downloads. |
144
148
| ` -v /incomplete-downloads ` | Local path for incomplete-downloads. |
145
149
| ` --read-only=true ` | Run container with a read-only filesystem. Please [ read the docs] ( https://docs.linuxserver.io/misc/read-only/ ) . |
150
+ | ` --user=1000:1000 ` | Run container with a non-root user. Please [ read the docs] ( https://docs.linuxserver.io/misc/non-root/ ) . |
146
151
147
152
## Environment variables from files (Docker secrets)
148
153
@@ -306,7 +311,8 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
306
311
307
312
# # Versions
308
313
309
- * ** 31.05.24:** - Rebase Alpine 3.20. Remove nzbnotify as apprise is now included with SABnzbd.
314
+ * ** 23.12.24:** - Rebase to Alpine 3.21.
315
+ * ** 31.05.24:** - Rebase to Alpine 3.20. Remove nzbnotify as apprise is now included with SABnzbd.
310
316
* ** 23.12.23:** - Rebase to Alpine 3.19.
311
317
* ** 23.11.23:** - Build translations.
312
318
* ** 13.09.23:** - Use par2cmdline-turbo in place of par2cmdline.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ repo_vars:
23
23
- CI_WEB='true'
24
24
- CI_PORT='8080'
25
25
- CI_SSL='false'
26
- - CI_DELAY='60 '
26
+ - CI_DELAY='120 '
27
27
- CI_DOCKERENV=''
28
28
- CI_AUTH=''
29
29
- CI_WEBPATH=''
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ opt_param_volumes:
31
31
- {vol_path: "/downloads", vol_host_path: "/path/to/downloads", desc: "Local path for finished downloads."}
32
32
- {vol_path: "/incomplete-downloads", vol_host_path: "/path/to/incomplete/downloads", desc: "Local path for incomplete-downloads."}
33
33
readonly_supported : true
34
+ nonroot_supported : true
34
35
# application setup block
35
36
app_setup_block_enabled : true
36
37
app_setup_block : |
@@ -90,7 +91,8 @@ init_diagram: |
90
91
"sabnzbd:latest" <- Base Images
91
92
# changelog
92
93
changelogs :
93
- - {date: "31.05.24:", desc: "Rebase Alpine 3.20. Remove nzbnotify as apprise is now included with SABnzbd."}
94
+ - {date: "23.12.24:", desc: "Rebase to Alpine 3.21."}
95
+ - {date: "31.05.24:", desc: "Rebase to Alpine 3.20. Remove nzbnotify as apprise is now included with SABnzbd."}
94
96
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
95
97
- {date: "23.11.23:", desc: "Build translations."}
96
98
- {date: "13.09.23:", desc: "Use par2cmdline-turbo in place of par2cmdline."}
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
# shellcheck shell=bash
3
3
4
- if grep -qe ' /downloads ' /proc/mounts; then
5
- lsiown abc:abc /downloads
6
- fi
4
+ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
5
+ if grep -qe ' /downloads ' /proc/mounts; then
6
+ lsiown abc:abc /downloads
7
+ fi
7
8
8
- if grep -qe ' /incomplete-downloads ' /proc/mounts; then
9
- lsiown abc:abc /incomplete-downloads
10
- fi
9
+ if grep -qe ' /incomplete-downloads ' /proc/mounts; then
10
+ lsiown abc:abc /incomplete-downloads
11
+ fi
11
12
12
- find /config -path /config/Downloads -prune -o -exec lsiown abc:abc {} +
13
+ find /config -path /config/Downloads -prune -o -exec lsiown abc:abc {} +
14
+ fi
Original file line number Diff line number Diff line change 3
3
4
4
FAMILY=::
5
5
6
- if [[ "$HAS_IPV6" = "false" ]]; then
7
- FAMILY=0.0.0.0
8
- sed '/ip6-/d' /etc/hosts > /etc/hosts.new
9
- cat /etc/hosts.new > /etc/hosts
10
- rm /etc/hosts.new
11
- fi
6
+ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
7
+ if [[ "$HAS_IPV6" = "false" ]]; then
8
+ FAMILY=0.0.0.0
9
+ sed '/ip6-/d' /etc/hosts > /etc/hosts.new
10
+ cat /etc/hosts.new > /etc/hosts
11
+ rm /etc/hosts.new
12
+ fi
12
13
13
- exec \
14
- s6-notifyoncheck -d -n 300 -w 1000 \
15
- s6-setuidgid abc python3 /app/sabnzbd/SABnzbd.py \
16
- --config-file /config --server "$FAMILY"
14
+ exec \
15
+ s6-notifyoncheck -d -n 300 -w 1000 \
16
+ s6-setuidgid abc python3 /app/sabnzbd/SABnzbd.py \
17
+ --config-file /config --server "$FAMILY"
18
+ else
19
+ exec \
20
+ s6-notifyoncheck -d -n 300 -w 1000 \
21
+ python3 /app/sabnzbd/SABnzbd.py \
22
+ --config-file /config --server "$FAMILY"
23
+ fi
You can’t perform that action at this time.
0 commit comments