Skip to content
Branch: master
Find file History
guillaumeblaquiere Useless file in this context
When JIB is used, this file is required. Here the graddle build doesn't require any variable
Latest commit a4c15f4 May 1, 2019

README.md

Micronaut + Google Cloud Run + GraalVM

This example demonstrates Micronaut and Google Cloud Run with GraalVM.

Setup

The example uses a Dockerfile that will build the native image.

To get going you should have Google Cloud SDK installed and follow the Setup Instructions for Google Cloud Run.

Deployment

First prepare the image using Google Cloud Build:

$ gcloud builds submit --tag gcr.io/[PROJECT-ID]/hello-world --timeout 30m

This delegates building of the image to GCP infrastructure. The build process may take some time as the GraalVM compiler is not the fastest.

You are now ready to deploy your application:

$ gcloud beta run deploy --image gcr.io/[PROJECT ID]/hello-world

Where [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.

You can’t perform that action at this time.