vost commited on
Commit
7c2f0e4
·
verified ·
1 Parent(s): 713c92e

Upload boot.ps1

Browse files
Files changed (1) hide show
  1. boot.ps1 +13 -9
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
- # Corrigido: 'docker build' em vez de 'built' e apontando para o contexto correto
81
- $GUARDIAN_DIR = "$INSTALL_PATH\Guardians\HW-Guardian"
82
- if (Test-Path $GUARDIAN_DIR) {
83
- docker build -t hw-guardian-base "$GUARDIAN_DIR" --no-cache
84
- docker compose -f "$GUARDIAN_DIR\docker-compose.yaml" up -d
85
- } else {
86
- Write-Warning "Pasta do HW-Guardian não encontrada em $GUARDIAN_DIR"
 
 
 
 
 
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