-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquick-start-basic.ps1
More file actions
31 lines (25 loc) · 1019 Bytes
/
Copy pathquick-start-basic.ps1
File metadata and controls
31 lines (25 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
param([string]$DeploymentType = "minimal")
Write-Host "HipCortex Quick Start" -ForegroundColor Green
Write-Host "Deployment Type: $DeploymentType" -ForegroundColor Yellow
# Check Docker
docker --version
if ($LASTEXITCODE -ne 0) {
Write-Host "Docker not available!" -ForegroundColor Red
exit 1
}
# Check if minimal container is already running
$existing = docker ps -q -f name=hipcortex-minimal
if ($existing) {
Write-Host "Stopping existing container..." -ForegroundColor Yellow
docker stop $existing
docker rm $existing
}
# Run the container
Write-Host "Starting HipCortex container..." -ForegroundColor Yellow
docker run -d --name hipcortex-minimal -p 3030:3030 hipcortex:latest
# Test health
Start-Sleep 5
Write-Host "Testing health endpoint..." -ForegroundColor Yellow
$response = Invoke-WebRequest -Uri "http://localhost:3030/health" -UseBasicParsing
Write-Host "Health check response: $($response.Content)" -ForegroundColor Green
Write-Host "Deployment complete!" -ForegroundColor Green