Skip to content

Commit 2057295

Browse files
committed
CH-231 remove curl based health check
1 parent 248984b commit 2057295

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

applications/accounts/scripts/kc-entrypoint.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ API_PASSWORD=$(cat /opt/cloudharness/resources/auth/api_user_password 2>/dev/nul
77

88
echo "Waiting for Keycloak to start..."
99

10-
# Wait for Keycloak to be ready
11-
until curl -sf http://localhost:8080/health/ready > /dev/null 2>&1; do
12-
sleep 2s
13-
done
10+
# Wait for Keycloak to be ready - just give it some time to start up
11+
sleep 120s
1412

15-
echo "Keycloak is ready. Attempting authentication..."
13+
echo "Attempting authentication..."
1614

1715
# First, try to authenticate as admin_api
1816
if [ -n "$API_PASSWORD" ] && /opt/keycloak/bin/kcadm.sh config credentials \

0 commit comments

Comments
 (0)