Skip to content

Commit ed07903

Browse files
committed
Rebase to 3.21
1 parent 2d8c4c5 commit ed07903

6 files changed

Lines changed: 46 additions & 18 deletions

File tree

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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ Note that if you want to use [Airsonic's Java jukebox player](https://airsonic.g
7575

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

78+
## Non-Root Operation
79+
80+
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
81+
7882
## Usage
7983

8084
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -149,6 +153,7 @@ Containers are configured using parameters passed at runtime (such as those abov
149153
| `-v /media` | Location of other media. |
150154
| `--device /dev/snd` | Only needed to pass your host sound device to Airsonic's Java jukebox player. |
151155
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
156+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
152157

153158
## Environment variables from files (Docker secrets)
154159

@@ -312,6 +317,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
312317

313318
## Versions
314319

320+
* **21.12.24:** - Rebase to Alpine 3.21.
315321
* **24.05.24:** - Rebase to Alpine 3.20.
316322
* **20.03.24:** - Rebase to Alpine 3.19.
317323
* **30.05.23:** - Rebase to Alpine 3.18.

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ opt_param_device_map: true
3434
opt_param_devices:
3535
- {device_path: "/dev/snd", device_host_path: "/dev/snd", desc: "Only needed to pass your host sound device to Airsonic's Java jukebox player."}
3636
readonly_supported: true
37+
nonroot_supported: true
3738
# application setup block
3839
app_setup_block_enabled: true
3940
app_setup_block: |
@@ -93,6 +94,7 @@ init_diagram: |
9394
"airsonic-advanced:latest" <- Base Images
9495
# changelog
9596
changelogs:
97+
- {date: "21.12.24:", desc: "Rebase to Alpine 3.21."}
9698
- {date: "24.05.24:", desc: "Rebase to Alpine 3.20."}
9799
- {date: "20.03.24:", desc: "Rebase to Alpine 3.19."}
98100
- {date: "30.05.23:", desc: "Rebase to Alpine 3.18."}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
mkdir -p "${AIRSONIC_ADVANCED_SETTINGS}"/transcode
55
mkdir -p "/run/tomcat.4040"
66

7-
lsiown -R abc:abc /config "${AIRSONIC_ADVANCED_SETTINGS}" /run/tomcat.4040
7+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
8+
lsiown -R abc:abc /config "${AIRSONIC_ADVANCED_SETTINGS}" /run/tomcat.4040
9+
fi
810

911
if [[ ! -e "${AIRSONIC_ADVANCED_SETTINGS}"/transcode/ffmpeg || ! -e "${AIRSONIC_ADVANCED_SETTINGS}"/transcode/flac || ! -e "${AIRSONIC_ADVANCED_SETTINGS}"/transcode/lame ]]; then
1012
ln -sf /usr/bin/ffmpeg "${AIRSONIC_ADVANCED_SETTINGS}"/transcode/

root/etc/s6-overlay/s6-rc.d/svc-airsonic-advanced/run

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,37 @@ URL_BASE="/${CONTEXT_PATH}"
1212
# add option to pass runtime arguments
1313
IFS=" " read -r -a RUN_ARRAY <<< "$JAVA_OPTS"
1414

15+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
1516
exec \
16-
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 4040" \
17-
cd "${AIRSONIC_ADVANCED_HOME}" s6-setuidgid abc \
18-
java \
19-
-Dlog4j2.formatMsgNoLookups=true \
20-
-Dairsonic.defaultMusicFolder=/music \
21-
-Dairsonic.defaultPlaylistFolder=/playlists \
22-
-Dairsonic.defaultPodcastFolder=/podcasts \
23-
-Dairsonic.home="${AIRSONIC_ADVANCED_SETTINGS}" \
24-
-Djava.awt.headless=true \
25-
-Djava.io.tmpdir="/run/tomcat.4040" \
26-
-Dserver.servlet.context-path="${URL_BASE}" \
27-
-Dserver.host=0.0.0.0 \
28-
-Dserver.port=4040 \
29-
"${RUN_ARRAY[@]}" \
30-
-jar airsonic.war
17+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 4040" \
18+
cd "${AIRSONIC_ADVANCED_HOME}" s6-setuidgid abc \
19+
java \
20+
-Dlog4j2.formatMsgNoLookups=true \
21+
-Dairsonic.defaultMusicFolder=/music \
22+
-Dairsonic.defaultPlaylistFolder=/playlists \
23+
-Dairsonic.defaultPodcastFolder=/podcasts \
24+
-Dairsonic.home="${AIRSONIC_ADVANCED_SETTINGS}" \
25+
-Djava.awt.headless=true \
26+
-Djava.io.tmpdir="/run/tomcat.4040" \
27+
-Dserver.servlet.context-path="${URL_BASE}" \
28+
-Dserver.host=0.0.0.0 \
29+
-Dserver.port=4040 \
30+
"${RUN_ARRAY[@]}" \
31+
-jar airsonic.war
32+
else
33+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 4040" \
34+
cd "${AIRSONIC_ADVANCED_HOME}" \
35+
java \
36+
-Dlog4j2.formatMsgNoLookups=true \
37+
-Dairsonic.defaultMusicFolder=/music \
38+
-Dairsonic.defaultPlaylistFolder=/playlists \
39+
-Dairsonic.defaultPodcastFolder=/podcasts \
40+
-Dairsonic.home="${AIRSONIC_ADVANCED_SETTINGS}" \
41+
-Djava.awt.headless=true \
42+
-Djava.io.tmpdir="/run/tomcat.4040" \
43+
-Dserver.servlet.context-path="${URL_BASE}" \
44+
-Dserver.host=0.0.0.0 \
45+
-Dserver.port=4040 \
46+
"${RUN_ARRAY[@]}" \
47+
-jar airsonic.war
48+
fi

0 commit comments

Comments
 (0)