Skip to content

Commit

Permalink
extend timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoremepunto committed Aug 12, 2024
1 parent c2d9cb1 commit 688b961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployments/wait_for_keycloak_import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ get_container_engine() {
}

success_entry_found() {
grep -Pq "$SUCCESS_LOG_ENTRY" <<<"$("$CONTAINER_ENGINE" -f "$COMPOSE_FILE" logs "$CONTAINER_NAME" 2>/dev/null)"
grep -Pq "$SUCCESS_LOG_ENTRY" <<<"$("$CONTAINER_ENGINE" compose -f "$COMPOSE_FILE" logs "$CONTAINER_NAME" 2>/dev/null)"
}

init_checks() {
Expand All @@ -47,7 +47,7 @@ wait_for() {
sleep 1

if [[ $((SECONDS - START_SECONDS)) -gt $TIMEOUT ]]; then
"$CONTAINER_ENGINE" compose -f "$COMPOSE_FILE" logs "$CONTAINER_NAME"
"$CONTAINER_ENGINE" compose -f "$COMPOSE_FILE" logs "$CONTAINER_NAME"
echo "$CONTAINER_NAME failed to reach ready status under $TIMEOUT seconds"
return 1
fi
Expand Down

0 comments on commit 688b961

Please sign in to comment.