File tree Expand file tree Collapse file tree
root/etc/s6-overlay/s6-rc.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
66ARG BUILD_DATE
Original file line number Diff line number Diff line change 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
66ARG BUILD_DATE
Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ The folks over at servarr.com wrote a good [write-up](https://wiki.servarr.com/D
8282
8383This 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
8791To 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.
Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ param_usage_include_ports: true
2929param_ports :
3030 - {external_port: "8989", internal_port: "8989", port_desc: "The port for the Sonarr web interface"}
3131readonly_supported : true
32+ nonroot_supported : true
3233# application setup block
3334app_setup_block_enabled : true
3435app_setup_block : |
@@ -86,6 +87,7 @@ init_diagram: |
8687 "sonarr:latest" <- Base Images
8788# changelog
8889changelogs :
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."}
Original file line number Diff line number Diff line change 33
44mkdir -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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments