Skip to content

Commit

Permalink
wait 20 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Apr 9, 2024
1 parent 5f37c5f commit b827754
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions start-mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ wait_for_mongodb () {
sleep 1
TIMER=$((TIMER + 1))

if [[ $TIMER -eq 40 ]]; then
echo "MongoDB did not initialize within 40 seconds. Exiting."
if [[ $TIMER -eq 20 ]]; then
echo "MongoDB did not initialize within 20 seconds. Exiting."
exit 2
fi
done
echo "::endgroup::"
}


# check if the container already exists and remove it
## TODO: put this behind an option flag
# if [ "$(docker ps -q -f name=$MONGODB_CONTAINER_NAME)" ]; then
Expand Down

0 comments on commit b827754

Please sign in to comment.