Files
boc/iom/scripts/deploy.sh
T
Bernt bae705aa97 ARCHITECTURE: NFC roadmap, edge AI, audit logging
- Add NFC ePassport roadmap (ICAO 9303, eIDAS)
- Add TensorFlow.js edge face detection (BlazeFace)
- Add structured audit logger (GDPR-compliant)
- Risk scoring support

Part of KYC Apple Native UX v1.1.0
2026-06-29 16:24:48 +00:00

48 lines
973 B
Bash
Executable File

#!/bin/bash
set -e
echo "=== IOM Platform Deployment ==="
# Check environment
if [ -z "$ENVIRONMENT" ]; then
echo "Error: ENVIRONMENT not set"
exit 1
fi
echo "Environment: $ENVIRONMENT"
# Pull latest images
echo "Pulling latest images..."
docker-compose pull
# Run database migrations
echo "Running database migrations..."
docker-compose run --rm api alembic upgrade head
# Start services
echo "Starting services..."
docker-compose up -d
# Wait for health checks
echo "Waiting for health checks..."
sleep 10
# Check API health
if curl -s http://localhost:8000/health | grep -q "healthy"; then
echo "✓ API is healthy"
else
echo "✗ API health check failed"
exit 1
fi
# Check database
docker-compose exec -T postgres pg_isready -U iom
# Check Redis
docker-compose exec -T redis redis-cli ping
echo "=== Deployment Complete ==="
echo "API: http://localhost:8000"
echo "Grafana: http://localhost:3000"
echo "Prometheus: http://localhost:9090"