Spaces:
Paused
Paused
File size: 1,370 Bytes
5a81b95 | 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 32 33 34 35 36 37 38 | # Setup Script 02: Setup PPTAgent Docker
# Starter PPTAgent Docker container
Write-Host "=================================================" -ForegroundColor Cyan
Write-Host " Step 2: Setup PPTAgent" -ForegroundColor Cyan
Write-Host "=================================================" -ForegroundColor Cyan
# Pull Docker image
Write-Host "Pulling PPTAgent Docker image..." -ForegroundColor Yellow
docker pull forceless/pptagent
# Check if container already exists
$existing = docker ps -a --filter "name=pptagent" --format "{{.Names}}"
if($existing -eq "pptagent") {
Write-Host "Container 'pptagent' already exists. Removing..." -ForegroundColor Yellow
docker stop pptagent
docker rm pptagent
}
# Start container
Write-Host "Starting PPTAgent container..." -ForegroundColor Yellow
docker run -dt --name pptagent `
-e OPENAI_API_KEY=$env:OPENAI_API_KEY `
-p 9297:9297 -p 8088:8088 `
-v "$env:USERPROFILE:/root" `
forceless/pptagent
# Check status
Start-Sleep -Seconds 5
$status = docker ps --filter "name=pptagent" --format "{{.Status}}"
Write-Host "Container status: $status" -ForegroundColor Green
Write-Host ""
Write-Host "✅ PPTAgent Docker container started!" -ForegroundColor Green
Write-Host "Access UI at: http://localhost:8088" -ForegroundColor Cyan
Write-Host "API endpoint: http://localhost:9297" -ForegroundColor Cyan
Write-Host ""
|