gcloud setup cloud run service - devonfw/hangar GitHub Wiki
The scope of this section is to initialize a Google Cloud Run service to early retrieve its endpoint, before any execution of a Deployment pipeline, so it is known and usable (e.g. in other scripts) on beforehand. By the end of this guide, a Cloud Run service on Google Cloud will be created in an automated way using a script and the public URL will be returned or written into an output file.
- 
Have a Google Cloud project already setup and Google Cloud CLI installed and configured. If it is not the case, please go back to corresponding guide.
 
The script located at /scripts/quickstart/gcloud/init-cloud-run.sh allows you to:
- 
Create a new Cloud Run service with a predefined HelloWorld image deployed and retrieve the public URL.
 
-p, --project                [Required] Short name (ID) of the project.
-n, --name                   [Required] Name for the Cloud Run service endpoint.
-r, --region                 [Required] Region where the Cloud Run service will be created.
-o, --output                            Output file path to store the created service public URL.