Cloud Run Deployment Script
- Google Cloud SDK installed
gcloud CLI configured
- Python 3.8+
- Google Cloud Project set up
- Install dependencies:
pip install -r requirements.txt
- Set up Application Default Credentials (locally):
gcloud auth application-default login
- Set environment variables:
export GCP_PROJECT_ID=your-project-id
- Customize the deployment script:
- Update
region
- Update
service_name
- Update
image_url
Deploy sample container to Cloud Run
python deploy_to_cloud_run.py
Deploy sources to Cloud Run
python deploy_sources_to_cloud_run.py