m5ji / stock_new_sumerizor

0 stars 0 forks source link

Stock News Summarizer

Side Project

How to test on Docker

1. Set GOOGLE_APPLICATION_CREDENTIALS in docker-compose.yml to the path to the file contains your service account key
2. Run docker-compose up

How to test on CloudRun

*Before you run, make sure you have the right service account/permission to deploy to CloudRun
1. Build your container image
cd backend; gcloud builds submit --tag gcr.io/stock-news-summarizer/backend
2. Deploy the container
gcloud run deploy --image gcr.io/stock-news-summarizer/backend --memory 4Gi --platform managed
3. Select northamerica-northeast1 for region
4. If it fails, go to https://console.cloud.google.com/run?project=stock-news-summarizer
5. Go to https://console.cloud.google.com/run?project=stock-news-summarizer
6. Click the service and select 'EDIT AND DEPLOY NEW REVISION'
6. Add Varialbe HOST={URL} and click Deploy