Skip to content

Commit 248984b

Browse files
committed
CH-231 remove limit on initial health check
1 parent c0f0401 commit 248984b

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

applications/accounts/scripts/kc-entrypoint.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@
22

33
/opt/keycloak/bin/kc.sh $@ &
44

5-
MAX_ATTEMPTS=30
6-
ATTEMPT=0
75
API_USERNAME="admin_api"
86
API_PASSWORD=$(cat /opt/cloudharness/resources/auth/api_user_password 2>/dev/null || echo "")
97

108
echo "Waiting for Keycloak to start..."
119

1210
# Wait for Keycloak to be ready
1311
until curl -sf http://localhost:8080/health/ready > /dev/null 2>&1; do
14-
ATTEMPT=$((ATTEMPT + 1))
15-
if [ $ATTEMPT -ge $MAX_ATTEMPTS ]; then
16-
echo "ERROR: Keycloak did not become ready after $MAX_ATTEMPTS attempts."
17-
wait
18-
exit 1
19-
fi
2012
sleep 2s
2113
done
2214

0 commit comments

Comments
 (0)