Files
doing-it-website/test-wiki-build.ps1
2025-11-29 03:01:04 +01:00

39 lines
1.1 KiB
PowerShell
Executable File

# PowerShell script to test and debug the Wiki Docker setup
Write-Host "=== Testing Wiki Docker Setup ===" -ForegroundColor Green
Write-Host ""
Write-Host "1. Checking Docker installation..." -ForegroundColor Yellow
docker --version
docker-compose --version
Write-Host ""
Write-Host "2. Validating docker-compose configuration..." -ForegroundColor Yellow
docker-compose config
Write-Host ""
Write-Host "3. Building Wiki service..." -ForegroundColor Yellow
docker-compose build wiki 2>&1
Write-Host ""
Write-Host "4. Checking for existing containers..." -ForegroundColor Yellow
docker ps -a | Select-String "wiki"
Write-Host ""
Write-Host "5. Starting services..." -ForegroundColor Yellow
docker-compose up -d
Write-Host ""
Write-Host "6. Checking service status..." -ForegroundColor Yellow
Start-Sleep -Seconds 3
docker-compose ps
Write-Host ""
Write-Host "7. Showing Wiki service logs..." -ForegroundColor Yellow
docker-compose logs wiki --tail=50
Write-Host ""
Write-Host "=== Test Complete ===" -ForegroundColor Green
Write-Host "Check the logs above for any errors." -ForegroundColor Cyan