Google Cloud Run Deployment Guide
Deploy VerityNgn API to Google Cloud Run for production use.Prerequisites
- Google Cloud Project with billing enabled
gcloudCLI installed and configured- Docker installed locally
- Service account with Vertex AI and Cloud Run permissions
Quick Deploy
1. Set Project
2. Enable APIs
3. Create Artifact Registry
4. Build and Push Image
5. Deploy to Cloud Run
Configuration
Environment Variables
Set in Cloud Run:DEPLOYMENT_MODE=productionSTORAGE_BACKEND=gcsGCS_BUCKET_NAME=your-bucket-nameVERTEX_MODEL_NAME=gemini-2.0-flash-exp
Secrets
Store API keys in Google Secret Manager:Streamlit UI Deployment
Deploy to Streamlit Cloud:- Push code to GitHub
- Go to share.streamlit.io
- Connect repository
- Set app path:
ui/streamlit_app.py - Add secrets in
.streamlit/secrets.toml:
Monitoring
View logs:Cost Estimation
- Cloud Run: 0.00000250/GiB-second
- Vertex AI: ~$0.25 per video
- Storage: ~$0.02/GB/month
- Expected: $10-50/month for light usage
