This repository provides an example for deploying applications on Cloud Run that makes API calls. It provides sample codes for using Google Cloud Text-to-Speech APIs and running a simple web application with Flask that is packaged as a container and deployed on Cloud Run.
- Open Google Cloud Shell.
- Clone this repository by running
git clone https://github.com/dvdbisong/text-to-speech-cloud-run.git
. - Navigate to the code folder folder:
cd text-speech
. - Build the container using Cloud Build:
gcloud builds submit --tag gcr.io/[PROJECT_ID]/text-speech
. - Deploy to Cloud Run:
gcloud run deploy --image gcr.io/[PROJECT_ID]/text-speech --platform managed
.
Blog post for this project: https://ekababisong.org/text-speech-cloud-run/