Sanity tests updates (#291399)

* Sanity tests updates

* Revert qemu accidental change.
This commit is contained in:
Dmitriy Vasyura
2026-01-28 13:58:56 -08:00
committed by GitHub
parent a8773d175f
commit 4d8241eeaa
21 changed files with 206 additions and 96 deletions

View File

@@ -4,6 +4,7 @@ setlocal enabledelayedexpansion
set ROOT=%~dp0..
set CONTAINER=
set ARCH=amd64
set MIRROR=mcr.microsoft.com/mirror/docker/library/
set BASE_IMAGE=
set ARGS=
@@ -34,12 +35,20 @@ if "%CONTAINER%"=="" (
exit /b 1
)
set HOST_ARCH=amd64
if "%PROCESSOR_ARCHITECTURE%"=="ARM64" set HOST_ARCH=arm64
if not "%ARCH%"=="%HOST_ARCH%" (
echo Setting up QEMU emulation for %ARCH% on %HOST_ARCH% host
docker run --privileged --rm tonistiigi/binfmt --install all >nul 2>&1
)
set BASE_IMAGE_ARG=
if not "%BASE_IMAGE%"=="" set BASE_IMAGE_ARG=--build-arg "BASE_IMAGE=%BASE_IMAGE%"
echo Building container image: %CONTAINER%
docker buildx build ^
--platform "linux/%ARCH%" ^
--build-arg "MIRROR=%MIRROR%" ^
%BASE_IMAGE_ARG% ^
--tag "%CONTAINER%" ^
--file "%ROOT%\containers\%CONTAINER%.dockerfile" ^
@@ -50,5 +59,6 @@ docker run ^
--rm ^
--platform "linux/%ARCH%" ^
--volume "%ROOT%:/root" ^
--entrypoint sh ^
"%CONTAINER%" ^
%ARGS%
/root/containers/entrypoint.sh %ARGS%