# GL: - consider placing the following steps 1 and 2 in a dockerfile and create your own image. That way, you can later spin up multiple instances easily if the test load grows.
# GL: - consider placing the following steps 1 and 2 in a dockerfile and create your own image. That way, you can later spin up multiple instances easily if the test load grows.
# remove next comment line
# --- THIS IS THE FIX ---
# We now wait for the Moodle web application itself to be fully responsive.
# We now wait for the Moodle web application itself to be fully responsive.
# We repeatedly curl the login page until we get a 200 OK status code.
# We repeatedly curl the login page until we get a 200 OK status code.
# This is the most reliable way to know the site is ready.
# This is the most reliable way to know the site is ready.
...
@@ -68,8 +67,7 @@ if [ ! -f "$PLUGIN_ZIP_NAME" ]; then echo "❌ Plugin ZIP file not found." && ex
...
@@ -68,8 +67,7 @@ if [ ! -f "$PLUGIN_ZIP_NAME" ]; then echo "❌ Plugin ZIP file not found." && ex
if[!-f"$DTA_CONFIG_FILE"];then echo"❌ DTA config file not found."&&exit 1;fi
if[!-f"$DTA_CONFIG_FILE"];then echo"❌ DTA config file not found."&&exit 1;fi