INNER CODE UNIT · Shell

TIMER

supercharge/mongodb-github-action · start-mongodb.sh:98

    TIMER=$((TIMER + 1))

    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
#  echo "Removing existing container [$MONGODB_CONTAINER_NAME]"
#  docker rm -f $MONGODB_CONTAINER_NAME
# fi

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…