-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.ps1
More file actions
72 lines (64 loc) · 2.31 KB
/
Copy pathverify.ps1
File metadata and controls
72 lines (64 loc) · 2.31 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# CollectIQ Deployment Verification Script
Write-Host "========================================" -ForegroundColor Cyan
Write-Host " CollectIQ Deployment Verification " -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
$ErrorCount = 0
# Check 1: Docker is installed
Write-Host "[1/8] Checking Docker installation..." -ForegroundColor Yellow
try {
docker --version | Out-Null
Write-Host " ✓ Docker is installed" -ForegroundColor Green
}
catch {
Write-Host " ✗ Docker is not installed or not in PATH" -ForegroundColor Red
$ErrorCount++
}
# Check 2: Docker Compose is available
Write-Host "[2/8] Checking Docker Compose..." -ForegroundColor Yellow
try {
docker-compose --version | Out-Null
Write-Host " ✓ Docker Compose is available" -ForegroundColor Green
}
catch {
Write-Host " ✗ Docker Compose is not available" -ForegroundColor Red
$ErrorCount++
}
# Check 3: Key files exist
Write-Host "[3/8] Checking key files..." -ForegroundColor Yellow
$files = @("docker-compose.yml", "README.md", "backend\package.json", "frontend\package.json")
foreach ($file in $files) {
if (Test-Path $file) {
Write-Host " ✓ $file exists" -ForegroundColor Green
}
else {
Write-Host " ✗ $file missing" -ForegroundColor Red
$ErrorCount++
}
}
# Check 4: Key directories exist
Write-Host "[4/8] Checking project structure..." -ForegroundColor Yellow
$dirs = @("backend", "frontend", "ml-models", "docs")
foreach ($dir in $dirs) {
if (Test-Path $dir) {
Write-Host " ✓ $dir/ exists" -ForegroundColor Green
}
else {
Write-Host " ✗ $dir/ missing" -ForegroundColor Red
$ErrorCount++
}
}
Write-Host ""
Write-Host "========================================" -ForegroundColor Cyan
if ($ErrorCount -eq 0) {
Write-Host "✅ All checks passed!" -ForegroundColor Green
Write-Host ""
Write-Host "Next steps:" -ForegroundColor Cyan
Write-Host " 1. Run: .\setup.ps1" -ForegroundColor White
Write-Host " 2. Run: docker-compose up" -ForegroundColor White
Write-Host " 3. Open: http://localhost:3000" -ForegroundColor White
}
else {
Write-Host "❌ Found $ErrorCount issue(s)" -ForegroundColor Red
}
Write-Host "========================================" -ForegroundColor Cyan