Skip to content

Commit edbd175

Browse files
committed
Rebase to 3.21
1 parent 5787812 commit edbd175

File tree

8 files changed

+28
-12
lines changed

8 files changed

+28
-12
lines changed

Dockerfile

+1-1
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

+1-1
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

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pipeline {
3232
CI_WEB='true'
3333
CI_PORT='8989'
3434
CI_SSL='false'
35-
CI_DELAY='120'
35+
CI_DELAY='240'
3636
CI_DOCKERENV=''
3737
CI_AUTH=''
3838
CI_WEBPATH='/system/status'

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ The folks over at servarr.com wrote a good [write-up](https://wiki.servarr.com/D
8282

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

85+
## Non-Root Operation
86+
87+
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
88+
8589
## Usage
8690

8791
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -140,6 +144,7 @@ Containers are configured using parameters passed at runtime (such as those abov
140144
| `-v /tv` | Location of TV library on disk (See note in Application setup) |
141145
| `-v /downloads` | Location of download managers output directory (See note in Application setup) |
142146
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
147+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
143148

144149
## Environment variables from files (Docker secrets)
145150

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

304309
## Versions
305310

311+
* **23.12.24:** - Rebase Alpine 3.21.
306312
* **31.05.24:** - Rebase Alpine 3.20.
307313
* **12.01.24:** - Update download url.
308314
* **30.12.23:** - Rebase master branch to Alpine 3.19.

jenkins-vars.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repo_vars:
2121
- CI_WEB='true'
2222
- CI_PORT='8989'
2323
- CI_SSL='false'
24-
- CI_DELAY='120'
24+
- CI_DELAY='240'
2525
- CI_DOCKERENV=''
2626
- CI_AUTH=''
2727
- CI_WEBPATH='/system/status'

readme-vars.yml

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ param_usage_include_ports: true
2929
param_ports:
3030
- {external_port: "8989", internal_port: "8989", port_desc: "The port for the Sonarr web interface"}
3131
readonly_supported: true
32+
nonroot_supported: true
3233
# application setup block
3334
app_setup_block_enabled: true
3435
app_setup_block: |
@@ -86,6 +87,7 @@ init_diagram: |
8687
"sonarr:latest" <- Base Images
8788
# changelog
8889
changelogs:
90+
- {date: "23.12.24:", desc: "Rebase Alpine 3.21."}
8991
- {date: "31.05.24:", desc: "Rebase Alpine 3.20."}
9092
- {date: "12.01.24:", desc: "Update download url."}
9193
- {date: "30.12.23:", desc: "Rebase master branch to Alpine 3.19."}

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
mkdir -p /run/sonarr-temp
55

6-
# permissions
7-
lsiown -R abc:abc \
8-
/config \
9-
/run/sonarr-temp
6+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
7+
lsiown -R abc:abc \
8+
/config \
9+
/run/sonarr-temp
10+
fi
+11-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
exec \
5-
s6-notifyoncheck -d -n 300 -w 1000 \
6-
cd /app/sonarr/bin s6-setuidgid abc /app/sonarr/bin/Sonarr \
7-
-nobrowser -data=/config
4+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
5+
exec \
6+
s6-notifyoncheck -d -n 300 -w 1000 \
7+
cd /app/sonarr/bin s6-setuidgid abc /app/sonarr/bin/Sonarr \
8+
-nobrowser -data=/config
9+
else
10+
exec \
11+
s6-notifyoncheck -d -n 300 -w 1000 \
12+
cd /app/sonarr/bin s6-setuidgid abc /app/sonarr/bin/Sonarr \
13+
-nobrowser -data=/config
14+
fi

0 commit comments

Comments
 (0)