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