mirror of
https://github.com/linuxserver/docker-jellyfin.git
synced 2025-10-26 18:53:39 +09:00
Merge pull request #248 from linuxserver/nightly-ffmpeg
Check ffmepg path, use proper health endpoint
This commit is contained in:
@@ -26,7 +26,8 @@ RUN \
|
|||||||
at \
|
at \
|
||||||
jellyfin-server=${JELLYFIN_RELEASE} \
|
jellyfin-server=${JELLYFIN_RELEASE} \
|
||||||
jellyfin-ffmpeg6 \
|
jellyfin-ffmpeg6 \
|
||||||
mesa-va-drivers && \
|
mesa-va-drivers \
|
||||||
|
xmlstarlet && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
@@ -34,7 +35,7 @@ RUN \
|
|||||||
/var/tmp/*
|
/var/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 8096 8920
|
EXPOSE 8096 8920
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ RUN \
|
|||||||
jellyfin-ffmpeg6 \
|
jellyfin-ffmpeg6 \
|
||||||
libomxil-bellagio0 \
|
libomxil-bellagio0 \
|
||||||
libomxil-bellagio-bin \
|
libomxil-bellagio-bin \
|
||||||
libraspberrypi0 && \
|
libraspberrypi0 \
|
||||||
|
xmlstarlet && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
@@ -36,7 +37,7 @@ RUN \
|
|||||||
/var/tmp/*
|
/var/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 8096 8920
|
EXPOSE 8096 8920
|
||||||
|
|||||||
11
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/data/check
Executable file
11
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/data/check
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ -f "/config/network.xml" ]]; then
|
||||||
|
PORT=$(xmlstarlet sel -T -t -v /NetworkConfiguration/HttpServerPortNumber /config/network.xml)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $(curl -sL "http://localhost:${PORT:-8096}/health" 2>/dev/null) = "Healthy" ]]; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
if [[ -z "${FFMPEG_PATH}" ]] || [[ ! -f "${FFMPEG_PATH}" ]]; then
|
||||||
|
FFMPEG_PATH=/usr/lib/jellyfin-ffmpeg/ffmpeg
|
||||||
|
fi
|
||||||
|
|
||||||
export \
|
export \
|
||||||
JELLYFIN_DATA_DIR="/config/data" \
|
JELLYFIN_DATA_DIR="/config/data" \
|
||||||
@@ -8,6 +13,6 @@ export \
|
|||||||
JELLYFIN_WEB_DIR="/usr/share/jellyfin/web"
|
JELLYFIN_WEB_DIR="/usr/share/jellyfin/web"
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8096" \
|
s6-notifyoncheck -d -n 300 -w 1000 \
|
||||||
s6-setuidgid abc /usr/bin/jellyfin \
|
s6-setuidgid abc /usr/bin/jellyfin \
|
||||||
--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
|
--ffmpeg="${FFMPEG_PATH}"
|
||||||
|
|||||||
Reference in New Issue
Block a user