fix: use a glibc base image for sqlite-jdbc
Alpine/musl cannot load sqlite-jdbc's bundled native library, so the container failed at startup. Switch the runtime image to eclipse-temurin:21-jre-jammy and verify the image end-to-end, including transcoding, against a read-only root filesystem. The smoke fixture now uses a 192 kbps source so the maxBitRate check actually proves transcoding instead of direct play.
This commit is contained in:
1 parent
25331ec0e1
commit
7d98bc1d3a
3 files changed
+14
-9
No files matched your search
+5
-3
@@ -37,7 +37,7 @@ ffmpeg -hide_banner -loglevel error -y \
|
||||
-metadata genre="Rock" \
|
||||
-metadata track="1" \
|
||||
-metadata date="2026" \
|
||||
-q:a 9 "$WORK/music/Smoke Artist/Smoke Album/01 - Smoke Song.mp3"
|
||||
-b:a 192k "$WORK/music/Smoke Artist/Smoke Album/01 - Smoke Song.mp3"
|
||||
|
||||
ffmpeg -hide_banner -loglevel error -y \
|
||||
-f lavfi -i "color=c=red:s=64x64" -frames:v 1 \
|
||||
@@ -210,14 +210,16 @@ if [[ "$RANGE_STATUS" == "206" ]]; then pass "stream range"; else fail "stream r
|
||||
|
||||
TRANSCODE_STATUS="$(curl -s -D "$WORK/transcode.headers" -o "$WORK/transcoded.mp3" -w '%{http_code}' "$BASE/rest/stream.view?$AUTH&id=$SONG_ID&maxBitRate=64")"
|
||||
if [[ "$TRANSCODE_STATUS" == "200" && -s "$WORK/transcoded.mp3" ]] \
|
||||
&& grep -qi '^content-type: audio/mpeg' "$WORK/transcode.headers"; then
|
||||
&& grep -qi '^content-type: audio/mpeg' "$WORK/transcode.headers" \
|
||||
&& [[ $(wc -c < "$WORK/transcoded.mp3") -lt $(wc -c < "$WORK/stream.mp3") ]]; then
|
||||
pass "stream transcode (maxBitRate)"
|
||||
else
|
||||
fail "stream transcode (maxBitRate)" "HTTP $TRANSCODE_STATUS, $(wc -c < "$WORK/transcoded.mp3" 2>/dev/null || echo 0) bytes"
|
||||
fi
|
||||
|
||||
OFFSET_STATUS="$(curl -s -o "$WORK/offset.mp3" -w '%{http_code}' "$BASE/rest/stream.view?$AUTH&id=$SONG_ID&timeOffset=1")"
|
||||
if [[ "$OFFSET_STATUS" == "200" && -s "$WORK/offset.mp3" ]]; then
|
||||
if [[ "$OFFSET_STATUS" == "200" && -s "$WORK/offset.mp3" ]] \
|
||||
&& [[ $(wc -c < "$WORK/offset.mp3") -lt $(wc -c < "$WORK/stream.mp3") ]]; then
|
||||
pass "stream transcode (timeOffset)"
|
||||
else
|
||||
fail "stream transcode (timeOffset)" "HTTP $OFFSET_STATUS"
|
||||
|
||||
Reference in new issue
Block a user