Allow readiness check to use custom ports
This commit is contained in:
+2
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user