Files
cortex/scripts/deploy-test.ps1

21 lines
668 B
PowerShell

. "$PSScriptRoot\lib\common.ps1"
Write-Step "Starting Cortex test database and embedding model"
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"
Invoke-CortexTestCompose build cortex-test-app
Write-Step "Applying test database migrations"
Invoke-CortexTestCompose run --rm cortex-test-app migrate
Write-Step "Starting Cortex test MCP server"
Invoke-CortexTestCompose up -d cortex-test-app
Write-Step "Waiting for test MCP server health"
Wait-HttpOk "http://localhost:5217/health" 180