Skip to content
Permalink
55fcd70f1d
Go to file
 
 
Cannot retrieve contributors at this time
executable file 16 lines (13 sloc) 472 Bytes
#!/bin/bash
ATTEMPT=0
MAX_ATTEMPTS=20
DELAY=10
until [[ $ATTEMPT = $MAX_ATTEMPTS ]]; do
ATTEMPT=$((ATTEMPT+1))
echo "Waiting $DELAY seconds for midPoint to start (attempt $ATTEMPT) ..."
sleep $DELAY
docker ps
( docker logs midpoint_midpoint-server_1 2>&1 | grep "INFO (com.evolveum.midpoint.web.boot.MidPointSpringApplication): Started MidPointSpringApplication in" ) && exit 0
done
echo midPoint did not start in $(( $MAX_ATTEMPTS * $DELAY )) seconds
exit 1
You can’t perform that action at this time.