Allow readiness check to use custom ports

This commit is contained in:
TheSpad
2023-06-06 14:41:25 +01:00
parent 8b4bdaaa43
commit ef362c4618
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -17,7 +17,8 @@ RUN \
echo "**** install packages ****" && \
apk add --no-cache \
icu-libs \
sqlite-libs && \
sqlite-libs \
xmlstarlet && \
echo "**** install sonarr ****" && \
mkdir -p /app/sonarr/bin && \
if [ -z ${SONARR_VERSION+x} ]; then \
+2 -1
View File
@@ -17,7 +17,8 @@ RUN \
echo "**** install packages ****" && \
apk add --no-cache \
icu-libs \
sqlite-libs && \
sqlite-libs \
xmlstarlet && \
echo "**** install sonarr ****" && \
mkdir -p /app/sonarr/bin && \
if [ -z ${SONARR_VERSION+x} ]; then \
@@ -1,6 +1,8 @@
#!/bin/bash
if [[ $(curl -sL "http://localhost:8989/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml)
if [[ $(curl -sL "http://localhost:${PORT:-8989}/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
exit 0
else
exit 1