Upload boot.ps1
Browse files
boot.ps1
CHANGED
|
@@ -69,21 +69,25 @@ if (-not [Environment]::GetEnvironmentVariable("HF_TOKEN", "User")) {
|
|
| 69 |
# --- 5. PREPARAÇÃO DO AMBIENTE DOCKER ---
|
| 70 |
Write-Host "--- Preparando Infraestrutura ---" -ForegroundColor Cyan
|
| 71 |
|
| 72 |
-
# Garante que o volume compartilhado exista ANTES do compose up
|
| 73 |
if (-not (docker volume ls -q -f name=Guardians-Share)) {
|
| 74 |
Write-Host "Criando Volume Compartilhado (Guardians-Share)..." -ForegroundColor Gray
|
| 75 |
docker volume create Guardians-Share
|
| 76 |
}
|
| 77 |
|
| 78 |
-
# 6. Execução do HW-Guardian
|
| 79 |
Write-Host "--- Iniciando HW-Guardian ---" -ForegroundColor Green
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
docker
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
}
|
| 88 |
|
| 89 |
# 7. Atalho na Área de Trabalho
|
|
|
|
| 69 |
# --- 5. PREPARAÇÃO DO AMBIENTE DOCKER ---
|
| 70 |
Write-Host "--- Preparando Infraestrutura ---" -ForegroundColor Cyan
|
| 71 |
|
|
|
|
| 72 |
if (-not (docker volume ls -q -f name=Guardians-Share)) {
|
| 73 |
Write-Host "Criando Volume Compartilhado (Guardians-Share)..." -ForegroundColor Gray
|
| 74 |
docker volume create Guardians-Share
|
| 75 |
}
|
| 76 |
|
| 77 |
+
# 6. Execução do HW-Guardian (O Olho)
|
| 78 |
Write-Host "--- Iniciando HW-Guardian ---" -ForegroundColor Green
|
| 79 |
+
$HWGUARDIAN_DIR = "$INSTALL_PATH\Guardians\HW-Guardian"
|
| 80 |
+
if (Test-Path $HWGUARDIAN_DIR) {
|
| 81 |
+
docker build -t hw-guardian-base "$HWGUARDIAN_DIR" --no-cache
|
| 82 |
+
docker compose -f "$HWGUARDIAN_DIR\docker-compose.yaml" up -d
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
# 7. Execução do AI-Guardian (O Cérebro/Orquestrador)
|
| 86 |
+
Write-Host "--- Iniciando AI-Guardian ---" -ForegroundColor Magenta
|
| 87 |
+
$AIGUARDIAN_DIR = "$INSTALL_PATH\Guardians\AI-Guardian" # Corrigido o caminho
|
| 88 |
+
if (Test-Path $AIGUARDIAN_DIR) {
|
| 89 |
+
docker build -t ai-guardian-base "$AIGUARDIAN_DIR" --no-cache
|
| 90 |
+
docker compose -f "$AIGUARDIAN_DIR\docker-compose.yaml" up -d
|
| 91 |
}
|
| 92 |
|
| 93 |
# 7. Atalho na Área de Trabalho
|