Release v1.1.0: Spotify Soloist als Empfänger, librespot als Rückfall

- soloist_api_key gesetzt (amd64/aarch64) → Spotify Soloist, sonst librespot
- Soloist wird zur Laufzeit von Spotify geladen und alle 12 h aktualisiert (Builds laufen nach 90 Tagen ab)
- Audio über PipeWire-Senke busch_radio → pw-record → bestehende Icecast-Pipeline
- amd64/aarch64 auf Debian-Basis (glibc für Soloist), 32-Bit bleibt Alpine
- Build-Fix: librespot auf Commit 99b6088 gepinnt, Browse-to-Patch an neuen Code angepasst
- README, DOCS und CHANGELOG überarbeitet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CGNdWh2jLNNb3tb9v1WEuK
This commit is contained in:
Niklas GühneandClaude Opus 5.5 committed 2026-11-04 15:26:50 +01:00
1 parent 95aac1d809
commit 99c910f488
10 files changed
+402 -114

No files matched your search

+35 -21
View File
@@ -12,7 +12,8 @@ RUN apk add --no-cache \
openssl-libs-static \
git
# Librespot vom aktuellen main-Branch klonen, patchen und kompilieren.
# Librespot auf festem Commit des dev-Branchs (2026-10-21) bauen, patchen und kompilieren.
# Fest gepinnt, weil Umbauten upstream sonst die Patches unbemerkt brechen (passiert im Nov. 2026).
#
# v0.7.0 hat Kompatibilitätsprobleme mit Spotifys aktuellem Backend:
# Spotify liefert keine Audio-Datei-IDs mehr → alle Tracks "not available".
@@ -22,12 +23,13 @@ RUN apk add --no-cache \
# 1. println! → eprintln! für "Browse to:"-URL (stdout geht sonst in ffmpeg-Pipe)
# 2. OAuth-Callback-Server auf 0.0.0.0 binden (statt nur 127.0.0.1)
# 3. Deutsche Erfolgs-Meldung nach OAuth
RUN git clone --depth 1 \
https://github.com/librespot-org/librespot.git /build && \
cd /build && \
ARG LIBRESPOT_COMMIT=99b6088bf3ea028f90192676ac1a337fa4b2ed12
RUN git init -q /build && cd /build && \
git remote add origin https://github.com/librespot-org/librespot.git && \
git fetch -q --depth 1 origin "${LIBRESPOT_COMMIT}" && git checkout -q FETCH_HEAD && \
# Patch 1: "Browse to:"-URL auf stderr statt stdout.
sed -i \
-e 's/println!("Browse to: {auth_url}")/eprintln!("Browse to: {auth_url}")/' \
-e 's/println!("Browse to: /eprintln!("Browse to: /g' \
-e 's/println!("Provide redirect URL")/eprintln!("Provide redirect URL")/' \
oauth/src/lib.rs && \
grep -n "eprintln.*Browse to" oauth/src/lib.rs || { echo "FEHLER: println→eprintln Patch fehlgeschlagen!"; exit 1; } && \
@@ -37,7 +39,8 @@ RUN git clone --depth 1 \
-e 's/Go back to your terminal :)/Autorisierung erfolgreich! Du kannst diesen Tab schliessen./' \
oauth/src/lib.rs && \
grep -n "UNSPECIFIED" oauth/src/lib.rs || { echo "FEHLER: TcpListener-Patch fehlgeschlagen!"; exit 1; } && \
cargo build \
# OpenSSL statisch: das musl-Binary muss auch im Debian-Image laufen (kein musl-libssl dort)
OPENSSL_STATIC=1 cargo build \
--release \
--no-default-features \
--features "native-tls" && \
@@ -45,32 +48,43 @@ RUN git clone --depth 1 \
cp target/release/librespot /install/bin/librespot
# ============================================================
# Runtime stage: HA-Basis-Image + ffmpeg + icecast
# Runtime stage: HA-Basis-Image + ffmpeg + icecast (+ PipeWire für Soloist)
# ============================================================
# amd64/aarch64: Debian (glibc) – Spotify Soloist braucht glibc ≥ 2.38.
# armhf/armv7: Alpine – für 32-Bit gibt es kein Soloist, dort nur librespot.
# Das librespot-Binary aus dem musl-Build ist statisch gelinkt und läuft auf beiden.
# Soloist selbst steckt NICHT im Image (Spotify erlaubt keine Weitergabe),
# es wird beim Start von Spotify geladen (siehe soloist-fetch.sh).
FROM ${BUILD_FROM}
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Abhängigkeiten installieren
# icecast liegt in Alpine's Community-Repository
RUN apk add --no-cache \
bash \
jq \
curl \
python3 \
ffmpeg \
&& apk add --no-cache \
--repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \
icecast \
|| apk add --no-cache icecast
RUN if command -v apk >/dev/null; then \
apk add --no-cache bash jq curl python3 ffmpeg \
&& { apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community icecast \
|| apk add --no-cache icecast; }; \
else \
apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
jq curl python3 ffmpeg icecast2 \
pipewire pipewire-bin wireplumber libpipewire-0.3-modules libspa-0.2-modules \
libpulse0 libatomic1 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*; \
fi
# Librespot-Binary aus dem Build-Stage übernehmen
COPY --from=librespot-builder /install/bin/librespot /usr/local/bin/librespot
RUN chmod +x /usr/local/bin/librespot
RUN chmod +x /usr/local/bin/librespot && librespot --version
# PipeWire im Container: virtuelle Senke, die ffmpeg abgreift (nur Soloist)
ENV XDG_RUNTIME_DIR="/run/pipewire"
COPY pipewire/ /etc/pipewire/pipewire.conf.d/
COPY wireplumber/ /etc/wireplumber/wireplumber.conf.d/
# Add-on Dateien kopieren
COPY run.sh /run.sh
COPY oauth_helper.py /oauth_helper.py
RUN chmod a+x /run.sh /oauth_helper.py
COPY soloist-fetch.sh /usr/local/bin/soloist-fetch
RUN chmod a+x /run.sh /oauth_helper.py /usr/local/bin/soloist-fetch
CMD ["/run.sh"]