@echo off setlocal enabledelayedexpansion set "ROOT_DIR=%~dp0.." if "%NEXUS_TEST_PYTHON_IMAGE%"=="" set "NEXUS_TEST_PYTHON_IMAGE=python:3.12-slim" if "%PIP_INDEX_URL%"=="" set "PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple" if "%NEXUS_DOCKER_PULL_PROXY%"=="" set "NEXUS_DOCKER_PULL_PROXY=socks5://127.0.0.1:10808" if /I not "%NEXUS_DOCKER_PULL_PROXY%"=="off" ( set "HTTP_PROXY=%NEXUS_DOCKER_PULL_PROXY%" set "HTTPS_PROXY=%NEXUS_DOCKER_PULL_PROXY%" set "ALL_PROXY=%NEXUS_DOCKER_PULL_PROXY%" set "http_proxy=%NEXUS_DOCKER_PULL_PROXY%" set "https_proxy=%NEXUS_DOCKER_PULL_PROXY%" set "all_proxy=%NEXUS_DOCKER_PULL_PROXY%" ) where docker >nul 2>nul if errorlevel 1 ( echo ERROR: docker is not available 1>&2 exit /b 127 ) docker run --rm ^ -v "%ROOT_DIR%:/workspace" ^ -w /workspace ^ -e PIP_INDEX_URL="%PIP_INDEX_URL%" ^ "%NEXUS_TEST_PYTHON_IMAGE%" ^ bash -lc "python -V && python -m pip install -r requirements.txt -r requirements-dev.txt && python scripts/run_local_release_gate.py --with-pytest --skip-frontend" endlocal