ultraGentle
ultraGentle

Reputation: 6299

Cloud Run local emulator : how to configure memory and CPU?

I'm developing a Cloud Run service using gcloud beta code dev (the local emulator).

The docs say there should be a .vscode/launch.json file, but I can't tell

Thanks!

Upvotes: 0

Views: 669

Answers (1)

Catherine O
Catherine O

Reputation: 1011

gcloud beta code dev command takes Cloud Run service, builds it and runs it on the local machine. To customize how your service is run, you can specify the following fields in your .vscode/launch.json file including your service name, port, and resource limits. You could also try to configure your service.yaml with gcloud beta code dev. As per gcloud beta code dev doc:

[SERVICE_CONFIG]

service.yaml filename override. Defaults to the first file matching *service.dev.yaml then *service.yaml, if any exist. This path is relative to the --source dir.

Upvotes: 1

Related Questions