Micronaut + Google Cloud Run
This example demonstrates Micronaut and Google Cloud Run.
You should then modify the
googleProjectId reference in
gradle.properties to your Google Project ID.
To push the container to Container Registry run:
$ ./gradlew jib
Deployment is then as simple as running:
$ gcloud beta run deploy --image gcr.io/[PROJECT ID]/hello-world
[PROJECT ID] is replaced for your project ID. You should see output like the following:
Service name: (hello-world): Deploying container to Cloud Run service [hello-world] in project [PROJECT_ID] region [us-central1] ✓ Deploying... Done. ✓ Creating Revision... ✓ Routing traffic... Done. Service [hello-world] revision [hello-world-00004] has been deployed and is serving traffic at https://hello-world-9487r97234-uc.a.run.app
The URL is the URL of your Cloud Run application.