Skip to content

Commit c740cbd

Browse files
authored
Merge pull request #158 from linuxserver/3.21
2 parents f9a79be + 21e61b9 commit c740cbd

File tree

6 files changed

+41
-18
lines changed

6 files changed

+41
-18
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.21
44

55
# set version label
66
ARG BUILD_DATE

Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21
44

55
# set version label
66
ARG BUILD_DATE

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,15 @@ This image can be run with a read-only container filesystem. For details please
6868

6969
### Caveats
7070

71-
`AUTO_UPDATE` will not be available.
71+
* `AUTO_UPDATE` will not be available.
72+
73+
## Non-Root Operation
74+
75+
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
76+
77+
### Caveats
78+
79+
* `AUTO_UPDATE` will not be available.
7280

7381
## Usage
7482

@@ -131,6 +139,7 @@ Containers are configured using parameters passed at runtime (such as those abov
131139
| `-v /config` | Where Jackett should store its config file. |
132140
| `-v /downloads` | Path to torrent blackhole. |
133141
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
142+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
134143

135144
## Environment variables from files (Docker secrets)
136145

@@ -294,6 +303,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
294303

295304
## Versions
296305

306+
* **12.01.25:** - Rebase to Alpine 3.21.
297307
* **31.05.24:** - Rebase to Alpine 3.20.
298308
* **11.03.24:** - Rebase to Alpine 3.19. Deprecate development tag as upstream is publishing nightly stable releases.
299309
* **11.07.23:** - Rebase to Alpine 3.18.

readme-vars.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ param_ports:
2323
# optional container parameters
2424
opt_param_usage_include_env: true
2525
opt_param_env_vars:
26-
- {env_var: "AUTO_UPDATE", env_value: "true", desc: "Allow Jackett to update inside of the container (currently recommended by Jackett and enabled by default)"}
26+
- {env_var: "AUTO_UPDATE", env_value: "true", desc: "Allow Jackett to update inside of the container."}
2727
- {env_var: "RUN_OPTS", env_value: "", desc: "Optionally specify additional arguments to be passed."}
2828
readonly_supported: true
2929
readonly_message: |
30-
`AUTO_UPDATE` will not be available.
30+
* `AUTO_UPDATE` will not be available.
31+
nonroot_supported: true
32+
nonroot_message: |
33+
* `AUTO_UPDATE` will not be available.
3134
# application setup block
3235
app_setup_block_enabled: true
3336
app_setup_block: |
@@ -78,6 +81,7 @@ init_diagram: |
7881
"jackett:latest" <- Base Images
7982
# changelog
8083
changelogs:
84+
- {date: "12.01.25:", desc: "Rebase to Alpine 3.21."}
8185
- {date: "31.05.24:", desc: "Rebase to Alpine 3.20."}
8286
- {date: "11.03.24:", desc: "Rebase to Alpine 3.19. Deprecate development tag as upstream is publishing nightly stable releases."}
8387
- {date: "11.07.23:", desc: "Rebase to Alpine 3.18."}
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
if [[ "${AUTO_UPDATE}" == "true" ]]; then
5-
lsiown -R abc:abc \
6-
/app/Jackett
7-
fi
8-
94
mkdir -p /run/jackett-temp
105

11-
# permissions
12-
lsiown -R abc:abc \
13-
/config \
14-
/run/jackett-temp
6+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
7+
if [[ "${AUTO_UPDATE,,}" == "true" ]]; then
8+
lsiown -R abc:abc \
9+
/app/Jackett
10+
fi
11+
12+
# permissions
13+
lsiown -R abc:abc \
14+
/config \
15+
/run/jackett-temp
16+
fi
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
if [[ "${AUTO_UPDATE}" == "true" ]]; then
4+
if [[ "${AUTO_UPDATE,,}" == "true" ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
55
COMMAND="/app/Jackett/jackett_launcher.sh"
66
else
77
COMMAND="/app/Jackett/jackett --NoUpdates"
88
fi
99

10-
exec \
11-
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 9117" \
12-
s6-setuidgid abc ${COMMAND} ${RUN_OPTS}
10+
11+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
12+
exec \
13+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 9117" \
14+
s6-setuidgid abc ${COMMAND} ${RUN_OPTS}
15+
else
16+
exec \
17+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 9117" \
18+
${COMMAND} ${RUN_OPTS}
19+
fi

0 commit comments

Comments
 (0)