Skip to content

mwhittaker/cloudrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Run

This repository shows how to run a Service Weaver application on Cloud Run. First, create a Docker container and upload it to Artifact Registry according to these instructions.

$ docker build -t REGION-docker.pkg.dev/PROJECT_ID/REPO_NAME/PATH:TAG .
$ docker push REGION-docker.pkg.dev/PROJECT_ID/REPO_NAME/PATH:TAG

Then, deploy the container to Cloud Run using gcloud run deploy:

$ gcloud run deploy NAME --image=REGION-docker.pkg.dev/PROJECT_ID/REPO_NAME/PATH:TAG --region=REGION --allow-unauthenticated

This command should print out a URL that you can use to access the service. Alternatively, you can curl the service from the command line:

$ curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" URL

About

How to run Service Weaver applications on Cloud Run

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published