Files
cortex/scripts/deploy-test-web.ps1

22 lines
744 B
PowerShell

. "$PSScriptRoot\lib\common.ps1"
Write-Step "Starting Cortex test dependencies for web UI"
Assert-Docker
Invoke-CortexTestCompose up -d cortex-test-db cortex-test-embeddings
Write-Step "Waiting for test embedding model health"
Wait-HttpOk "http://localhost:8188/health" 300
Write-Step "Building Cortex test app image for migrations"
Invoke-CortexTestCompose build cortex-test-app
Write-Step "Applying test database migrations"
Invoke-CortexTestCompose run --rm cortex-test-app migrate
Write-Step "Starting optional Cortex test web UI"
$webUpArgs = @("--profile", "ui", "up", "-d", "--build", "cortex-test-web")
Invoke-CortexTestCompose @webUpArgs
Write-Step "Waiting for test web UI health"
Wait-HttpOk "http://localhost:5218/health" 120