Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Commit f1a704e

Browse files
committed
Rebase to Alpine 3.17, bump jre to 11, deprecate armhf
1 parent 4d5d953 commit f1a704e

File tree

18 files changed

+66
-100
lines changed

18 files changed

+66
-100
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
1+
# syntax=docker/dockerfile:1
2+
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
24

35
# set version label
46
ARG BUILD_DATE
@@ -15,12 +17,11 @@ LANG="C.UTF-8"
1517
RUN \
1618
echo "**** install runtime packages ****" && \
1719
apk add -U --no-cache \
18-
curl \
1920
ffmpeg \
2021
flac \
2122
fontconfig \
2223
lame \
23-
openjdk8-jre \
24+
openjdk11-jre \
2425
ttf-dejavu && \
2526
echo "**** fix XXXsonic status page ****" && \
2627
find /etc -name "accessibility.properties" -exec rm -fv '{}' + && \
@@ -37,11 +38,13 @@ RUN \
3738
"https://github.com/popeen/Booksonic-Air/releases/download/${BOOKSONIC_AIR_RELEASE}/booksonic.war" && \
3839
echo "**** cleanup ****" && \
3940
rm -rf \
40-
/tmp/*
41+
/tmp/* \
42+
$HOME/.cache
4143

4244
# add local files
4345
COPY root/ /
4446

4547
# ports and volumes
4648
EXPOSE 4040
49+
4750
VOLUME /config

Dockerfile.aarch64

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
1+
# syntax=docker/dockerfile:1
2+
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.17
24

35
# set version label
46
ARG BUILD_DATE
@@ -15,12 +17,11 @@ LANG="C.UTF-8"
1517
RUN \
1618
echo "**** install runtime packages ****" && \
1719
apk add -U --no-cache \
18-
curl \
1920
ffmpeg \
2021
flac \
2122
fontconfig \
2223
lame \
23-
openjdk8-jre \
24+
openjdk11-jre \
2425
ttf-dejavu && \
2526
echo "**** fix XXXsonic status page ****" && \
2627
find /etc -name "accessibility.properties" -exec rm -fv '{}' + && \
@@ -37,11 +38,13 @@ RUN \
3738
"https://github.com/popeen/Booksonic-Air/releases/download/${BOOKSONIC_AIR_RELEASE}/booksonic.war" && \
3839
echo "**** cleanup ****" && \
3940
rm -rf \
40-
/tmp/*
41+
/tmp/* \
42+
$HOME/.cache
4143

4244
# add local files
4345
COPY root/ /
4446

4547
# ports and volumes
4648
EXPOSE 4040
49+
4750
VOLUME /config

Dockerfile.armhf

Lines changed: 0 additions & 47 deletions
This file was deleted.

jenkins-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ external_type: github_stable
66
release_type: stable
77
release_tag: latest
88
ls_branch: master
9+
build_armhf: false
910
repo_vars:
1011
- EXT_GIT_BRANCH = 'master'
1112
- EXT_USER = 'popeen'

readme-vars.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_
1616
available_architectures:
1717
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
1818
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
19-
- { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"}
2019

2120
# development version
22-
development_versions: true
23-
development_versions_items:
24-
- { tag: "latest", desc: "Stable booksonic-air releases" }
21+
development_versions: false
2522

2623
# container parameters
2724
common_param_env_vars_enabled: true #PGID, PUID, etc, you can set it to 'optional'
@@ -32,10 +29,10 @@ param_env_vars:
3229
- { env_var: "CONTEXT_PATH", env_value: "url-base", desc: "Base url for use with reverse proxies etc." }
3330
param_usage_include_vols: true
3431
param_volumes:
35-
- { vol_path: "/config", vol_host_path: "</path/to/appdata/config>", desc: "Configuration files." }
36-
- { vol_path: "/audiobooks", vol_host_path: "</path/to/audiobooks>", desc: "Audiobooks." }
37-
- { vol_path: "/podcasts", vol_host_path: "</path/to/podcasts>", desc: "Podcasts." }
38-
- { vol_path: "/othermedia", vol_host_path: "</path/to/othermedia>", desc: "Other media." }
32+
- { vol_path: "/config", vol_host_path: "/path/to/appdata/config", desc: "Configuration files." }
33+
- { vol_path: "/audiobooks", vol_host_path: "/path/to/audiobooks", desc: "Audiobooks." }
34+
- { vol_path: "/podcasts", vol_host_path: "/path/to/podcasts", desc: "Podcasts." }
35+
- { vol_path: "/othermedia", vol_host_path: "/path/to/othermedia", desc: "Other media." }
3936
param_usage_include_ports: true
4037
param_ports:
4138
- { external_port: "4040", internal_port: "4040", port_desc: "Application WebUI" }
@@ -46,5 +43,6 @@ app_setup_block: "Whilst this is a more up to date rebase of the original Bookso
4643

4744
# changelog
4845
changelogs:
46+
- { date: "25.12.22:", desc: "Rebase to Alpine 3.17, migrate to s6v3, bump jre to 11, deprecate armhf." }
4947
- { date: "18.04.22:", desc: "Rebase to Alpine 3.15." }
5048
- { date: "15.09.20:", desc: "Initial Release." }

root/etc/cont-init.d/30-config

Lines changed: 0 additions & 11 deletions
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-booksonic-air-config/dependencies.d/init-config

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
mkdir -p "${BOOKSONIC_AIR_SETTINGS}"/transcode
5+
6+
if [[ ! -e "${BOOKSONIC_AIR_SETTINGS}"/transcode/ffmpeg ]] || [[ ! -e "${BOOKSONIC_AIR_SETTINGS}"/transcode/flac ]] || [[ ! -e "${BOOKSONIC_AIR_SETTINGS}"/transcode/lame ]]; then
7+
ln -sf /usr/bin/ffmpeg "${BOOKSONIC_AIR_SETTINGS}"/transcode/
8+
ln -sf /usr/bin/flac "${BOOKSONIC_AIR_SETTINGS}"/transcode/
9+
ln -sf /usr/bin/lame "${BOOKSONIC_AIR_SETTINGS}"/transcode/
10+
fi
11+
12+
lsiown -R abc:abc \
13+
/config \
14+
"${BOOKSONIC_AIR_HOME}"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-booksonic-air-config/run

0 commit comments

Comments
 (0)