Skip to main content

Google Cloud Run Deployment Guide

Deploy VerityNgn API to Google Cloud Run for production use.

Prerequisites

  • Google Cloud Project with billing enabled
  • gcloud CLI 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=production
  • STORAGE_BACKEND=gcs
  • GCS_BUCKET_NAME=your-bucket-name
  • VERTEX_MODEL_NAME=gemini-2.0-flash-exp

Secrets

Store API keys in Google Secret Manager:

Streamlit UI Deployment

Deploy to Streamlit Cloud:
  1. Push code to GitHub
  2. Go to share.streamlit.io
  3. Connect repository
  4. Set app path: ui/streamlit_app.py
  5. Add secrets in .streamlit/secrets.toml:

Monitoring

View logs:

Cost Estimation

  • Cloud Run: 0.00002400/vCPUsecond,0.00002400/vCPU-second, 0.00000250/GiB-second
  • Vertex AI: ~$0.25 per video
  • Storage: ~$0.02/GB/month
  • Expected: $10-50/month for light usage
See DEPLOYMENT_LOCAL.md for local testing.