# Quick Docker build and test script for Azure Pricing MCP
# Windows PowerShell version
Write-Host "๐ณ Building Azure Pricing MCP Docker image..." -ForegroundColor Cyan
docker build -t azure-pricing-mcp:latest .
if ($LASTEXITCODE -eq 0) {
Write-Host ""
Write-Host "โ
Image built successfully!" -ForegroundColor Green
} else {
Write-Host "โ Build failed!" -ForegroundColor Red
exit 1
}
Write-Host ""
Write-Host "๐ฆ Image details:" -ForegroundColor Yellow
docker images azure-pricing-mcp:latest
Write-Host ""
Write-Host "๐งช Testing container startup..." -ForegroundColor Yellow
$job = Start-Job -ScriptBlock { docker run --rm azure-pricing-mcp:latest }
Start-Sleep -Seconds 3
Stop-Job $job
Remove-Job $job
Write-Host ""
Write-Host "โ
Docker setup complete!" -ForegroundColor Green
Write-Host ""
Write-Host "Next steps:" -ForegroundColor Cyan
Write-Host "1. Configure your AI assistant (VS Code or Claude Desktop)" -ForegroundColor White
Write-Host "2. Use this command in your config:" -ForegroundColor White
Write-Host ' "command": "docker",' -ForegroundColor Gray
Write-Host ' "args": ["run", "-i", "--rm", "azure-pricing-mcp:latest"]' -ForegroundColor Gray
Write-Host ""
Write-Host "See DOCKER.md for full configuration guide." -ForegroundColor White