File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -428,20 +428,33 @@ jobs:
428428 - script : |
429429 docker run -d --name build-container-$(targetArch) \
430430 --platform $(dockerPlatform) \
431+ --network host \
431432 -v $(Build.SourcesDirectory):/workspace \
432433 -w /workspace \
433- --network bridge \
434+ --memory=4g \
435+ --memory-swap=6g \
436+ --cpus="2.0" \
437+ --shm-size=1g \
434438 quay.io/pypa/$(manylinuxTag):latest \
435439 tail -f /dev/null
436- displayName: 'Create manylinux2014 $(targetArch) container'
440+
441+ # Check container resources
442+ docker exec build-container-$(targetArch) bash -c "
443+ echo 'Container system information:'
444+ free -h
445+ df -h
446+ nproc
447+ uname -a
448+ "
449+ displayName: 'Create manylinux2014 $(targetArch) container with resource limits'
437450
438451 # Start SQL Server container for testing
439452 - script : |
440453 docker run -d --name sqlserver-$(targetArch) \
441454 --platform linux/amd64 \
455+ --network host \
442456 -e ACCEPT_EULA=Y \
443457 -e MSSQL_SA_PASSWORD="$(DB_PASSWORD)" \
444- -p 1433:1433 \
445458 mcr.microsoft.com/mssql/server:2022-latest
446459
447460 # Wait for SQL Server to be ready
@@ -548,7 +561,7 @@ jobs:
548561 echo "SQL Server IP: $SQLSERVER_IP"
549562
550563 docker exec \
551- -e DB_CONNECTION_STRING="Driver=ODBC Driver 18 for SQL Server;Server=$SQLSERVER_IP ;Database=TestDB ;Uid=SA;Pwd=$(DB_PASSWORD);TrustServerCertificate=yes" \
564+ -e DB_CONNECTION_STRING="Driver=ODBC Driver 18 for SQL Server;Server=localhost,1433 ;Database=master ;Uid=SA;Pwd=$(DB_PASSWORD);TrustServerCertificate=yes;Timeout=30; " \
552565 -e DB_PASSWORD="$(DB_PASSWORD)" \
553566 build-container-$(targetArch) bash -c "
554567 echo 'Running tests on manylinux2014 $(targetArch)'
You can’t perform that action at this time.
0 commit comments