GoogleCloudPlatform / terraform-mean-cloudrun-mongodb

Apache License 2.0
15 stars 5 forks source link

Support single container deployment for MVP #10

Closed subfuzion closed 2 years ago

subfuzion commented 2 years ago

Track this pull request: https://github.com/mongodb-developer/mean-stack-example/pull/2

This adds the ability to deploy a single container that serves the static frontend assets from a server also hosting the backend on Cloud Run.

subfuzion commented 2 years ago

I've pushed a public image to Docker Hub: subfuzion/mean-stack-example.

We can use this for testing the MVP until we're able to add support to build and deploy images as part of a pipeline. In the interim, it's expected that a user will have to specify the image they want to use as part of their configuration.

subfuzion commented 2 years ago

I have a working demo of the single container deployment running on Cloud Run: https://mean-stack-example-tagz5nlvpa-uc.a.run.app/

subfuzion commented 2 years ago

After checking out the pull request, run the following from the root directory of the repo:

gcloud run deploy SERVICE --project PROJECT --region REGION --allow-unauthenticated --source .