#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
Fix healthcheck in Docker files when `SYSTEM_ROOTURIPATH` is specified (#5954)
unlair3d17f0409fc4
diff --git a/DeveloperGuide.md b/DeveloperGuide.mdindex d67429437a..735c1348f9 100644--- a/DeveloperGuide.md+++ b/DeveloperGuide.md@@ -187,7 +187,7 @@ services:limits:memory: 4Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]interval: 5stimeout: 10sretries: 16diff --git a/devGuide/DeveloperGuide.md b/devGuide/DeveloperGuide.mdindex 034a475c5f..2a16adf979 100644--- a/devGuide/DeveloperGuide.md+++ b/devGuide/DeveloperGuide.md@@ -135,7 +135,7 @@ services:limits:memory: 4Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/compose/docker-compose-unified-backend.yml b/docker/compose/docker-compose-unified-backend.ymlindex b8ebfd42b3..e8a9e3c3df 100644--- a/docker/compose/docker-compose-unified-backend.yml+++ b/docker/compose/docker-compose-unified-backend.yml@@ -41,7 +41,7 @@ services:restart: unless-stoppedhealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status || exit 1"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status || exit 1"]interval: 30stimeout: 10sretries: 3diff --git a/docker/compose/docker-compose-unified-both.yml b/docker/compose/docker-compose-unified-both.ymlindex 92e08e4aae..f600905de3 100644--- a/docker/compose/docker-compose-unified-both.yml+++ b/docker/compose/docker-compose-unified-both.yml@@ -45,7 +45,7 @@ services:restart: unless-stoppedhealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status || exit 1"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status || exit 1"]interval: 30stimeout: 10sretries: 3diff --git a/docker/compose/docker-compose-unified-frontend.yml b/docker/compose/docker-compose-unified-frontend.ymlindex c7d217b34c..0739bf8a7a 100644--- a/docker/compose/docker-compose-unified-frontend.yml+++ b/docker/compose/docker-compose-unified-frontend.yml@@ -24,7 +24,7 @@ services:UMASK: "022"restart: unless-stoppedhealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status || exit 1"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status || exit 1"]interval: 30stimeout: 10sretries: 3diff --git a/docker/compose/docker-compose.fat.yml b/docker/compose/docker-compose.fat.ymlindex a6d657f156..215471ab0b 100644--- a/docker/compose/docker-compose.fat.yml+++ b/docker/compose/docker-compose.fat.yml@@ -10,7 +10,7 @@ services:limits:memory: 6Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/compose/docker-compose.ultra-lite.yml b/docker/compose/docker-compose.ultra-lite.ymlindex 420a64137f..af2c6efc71 100644--- a/docker/compose/docker-compose.ultra-lite.yml+++ b/docker/compose/docker-compose.ultra-lite.yml@@ -10,7 +10,7 @@ services:limits:memory: 2Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/compose/docker-compose.yml b/docker/compose/docker-compose.ymlindex 359bf2f463..577338a90d 100644--- a/docker/compose/docker-compose.yml+++ b/docker/compose/docker-compose.yml@@ -6,7 +6,7 @@ services:container_name: stirling-pdfrestart: unless-stoppedhealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/embedded/Dockerfile b/docker/embedded/Dockerfileindex 0d8bb176e8..a0f435c15c 100644--- a/docker/embedded/Dockerfile+++ b/docker/embedded/Dockerfile@@ -119,7 +119,7 @@ EXPOSE 8080/tcpSTOPSIGNAL SIGTERMHEALTHCHECK --interval=30s --timeout=15s --start-period=120s --retries=5 \- CMD curl -fs --max-time 10 http://localhost:8080/api/v1/info/status || exit 1+ CMD curl -fs --max-time 10 http://localhost:8080${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status || exit 1ENTRYPOINT ["tini", "--", "/scripts/init.sh"]CMD []diff --git a/docker/embedded/Dockerfile.fat b/docker/embedded/Dockerfile.fatindex 43d4da75a9..6c739e61ea 100644--- a/docker/embedded/Dockerfile.fat+++ b/docker/embedded/Dockerfile.fat@@ -121,7 +121,7 @@ EXPOSE 8080/tcpSTOPSIGNAL SIGTERMHEALTHCHECK --interval=30s --timeout=15s --start-period=120s --retries=5 \- CMD curl -fs --max-time 10 http://localhost:8080/api/v1/info/status || exit 1+ CMD curl -fs --max-time 10 http://localhost:8080${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status || exit 1ENTRYPOINT ["tini", "--", "/scripts/init.sh"]CMD []diff --git a/docker/embedded/compose/docker-compose-latest-fat-endpoints-disabled.yml b/docker/embedded/compose/docker-compose-latest-fat-endpoints-disabled.ymlindex 512ba4f144..c1d2360b53 100644--- a/docker/embedded/compose/docker-compose-latest-fat-endpoints-disabled.yml+++ b/docker/embedded/compose/docker-compose-latest-fat-endpoints-disabled.yml@@ -11,7 +11,7 @@ services:limits:memory: 4Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/embedded/compose/docker-compose-latest-fat-security.yml b/docker/embedded/compose/docker-compose-latest-fat-security.ymlindex 9ca92ce60c..7abd1acd6c 100644--- a/docker/embedded/compose/docker-compose-latest-fat-security.yml+++ b/docker/embedded/compose/docker-compose-latest-fat-security.yml@@ -10,7 +10,7 @@ services:limits:memory: 4Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/embedded/compose/docker-compose-latest-security-remote-uno.yml b/docker/embedded/compose/docker-compose-latest-security-remote-uno.ymlindex d1b804ad4c..a80a04e133 100644--- a/docker/embedded/compose/docker-compose-latest-security-remote-uno.yml+++ b/docker/embedded/compose/docker-compose-latest-security-remote-uno.yml@@ -6,7 +6,7 @@ services:context: ../../..dockerfile: docker/embedded/Dockerfilehealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/embedded/compose/docker-compose-latest-security.yml b/docker/embedded/compose/docker-compose-latest-security.ymlindex af8979bafa..42f9946dc0 100644--- a/docker/embedded/compose/docker-compose-latest-security.yml+++ b/docker/embedded/compose/docker-compose-latest-security.yml@@ -6,7 +6,7 @@ services:context: ../../..dockerfile: docker/embedded/Dockerfilehealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/embedded/compose/docker-compose-latest-ultra-lite.yml b/docker/embedded/compose/docker-compose-latest-ultra-lite.ymlindex a5cae8dc54..11174d1064 100644--- a/docker/embedded/compose/docker-compose-latest-ultra-lite.yml+++ b/docker/embedded/compose/docker-compose-latest-ultra-lite.yml@@ -10,7 +10,7 @@ services:limits:memory: 1Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"]interval: 5stimeout: 10sretries: 16diff --git a/docker/embedded/compose/test_cicd.yml b/docker/embedded/compose/test_cicd.ymlindex d1e08013c2..c6043078a0 100644--- a/docker/embedded/compose/test_cicd.yml+++ b/docker/embedded/compose/test_cicd.yml@@ -10,7 +10,7 @@ services:limits:memory: 4Ghealthcheck:- test: ["CMD-SHELL", "curl -f -H 'X-API-KEY: 123456789' http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f -H 'X-API-KEY: 123456789' http://localhost:8080${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/testing/compose/docker-compose-keycloak-oauth.yml b/testing/compose/docker-compose-keycloak-oauth.ymlindex dd5c096658..345dac2175 100644--- a/testing/compose/docker-compose-keycloak-oauth.yml+++ b/testing/compose/docker-compose-keycloak-oauth.yml@@ -58,7 +58,7 @@ services:- "localhost:host-gateway"- "${KEYCLOAK_HOST:-kubernetes.docker.internal}:host-gateway"healthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 30diff --git a/testing/compose/docker-compose-keycloak-saml.yml b/testing/compose/docker-compose-keycloak-saml.ymlindex c5192122ca..db5ec53a26 100644--- a/testing/compose/docker-compose-keycloak-saml.yml+++ b/testing/compose/docker-compose-keycloak-saml.yml@@ -56,7 +56,7 @@ services:context: ../..dockerfile: docker/embedded/Dockerfilehealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 30diff --git a/testing/compose/docker-compose-security-with-login.yml b/testing/compose/docker-compose-security-with-login.ymlindex ca35fd1c9f..7199d09171 100644--- a/testing/compose/docker-compose-security-with-login.yml+++ b/testing/compose/docker-compose-security-with-login.yml@@ -10,7 +10,7 @@ services:limits:memory: 4Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/testing/compose/docker-compose-security.yml b/testing/compose/docker-compose-security.ymlindex deedc001fe..4454cb275f 100644--- a/testing/compose/docker-compose-security.yml+++ b/testing/compose/docker-compose-security.yml@@ -10,7 +10,7 @@ services:limits:memory: 4Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16diff --git a/testing/compose/docker-compose-ultra-lite.yml b/testing/compose/docker-compose-ultra-lite.ymlindex fcb9554792..ab3a942809 100644--- a/testing/compose/docker-compose-ultra-lite.yml+++ b/testing/compose/docker-compose-ultra-lite.yml@@ -10,7 +10,7 @@ services:limits:memory: 2Ghealthcheck:- test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]+ test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]interval: 5stimeout: 10sretries: 16