We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0f0401 commit 248984bCopy full SHA for 248984b
1 file changed
applications/accounts/scripts/kc-entrypoint.sh
@@ -2,21 +2,13 @@
2
3
/opt/keycloak/bin/kc.sh $@ &
4
5
-MAX_ATTEMPTS=30
6
-ATTEMPT=0
7
API_USERNAME="admin_api"
8
API_PASSWORD=$(cat /opt/cloudharness/resources/auth/api_user_password 2>/dev/null || echo "")
9
10
echo "Waiting for Keycloak to start..."
11
12
# Wait for Keycloak to be ready
13
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
20
sleep 2s
21
done
22
0 commit comments