You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
264
264
265
-
# Wait for SQL Server to be ready
265
+
# Wait for SQL Server to be ready with increased timeout
266
266
echo "Waiting for SQL Server to start..."
267
267
268
-
# First, wait for the container to be running and SQL Server service to be listening
269
-
for i in {1..30}; do
268
+
# Extended wait for the container to be running and SQL Server service to be listening
269
+
for i in {1..60}; do
270
270
if docker logs $(docker ps -q --filter ancestor=mcr.microsoft.com/mssql/server:2022-latest) 2>&1 | grep -q "SQL Server is now ready for client connections"; then
271
-
echo "SQL Server service is ready after $i attempts ($(($i * 2)) seconds)"
271
+
echo "SQL Server service is ready after $i attempts ($(($i * 3)) seconds)"
272
272
break
273
273
fi
274
-
echo "Attempt $i: Waiting for SQL Server service to be ready, checking again in 2 seconds..."
275
-
sleep 2
274
+
echo "Attempt $i: Waiting for SQL Server service to be ready, checking again in 3 seconds..."
275
+
sleep 3
276
276
done
277
277
278
-
# Additional wait to ensure full initialization
279
-
echo "Waiting additional 10 seconds for full SQL Server initialization..."
280
-
sleep 10
278
+
# Increased wait to ensure full initialization for database operations
279
+
echo "Waiting additional 60 seconds for full SQL Server initialization..."
280
+
sleep 60
281
281
282
282
# Verify we can connect using a simple network test first
0 commit comments