cloud-run-typescript-template
cloud-run-typescript-template copied to clipboard
Does not run in VSCode out-of-the-box
Environment
In VSCode, using the Cloud Code -> Run on Cloud Run Emulator
Steps to Reproduce
Docker for Windows is installed, as is the WSL2 requirement. Cloned the project, ran yarn to install node_modules dependencies. Tested in console- yarn dev works, and when it's working, yarn test displays 1 successful test, as expected.
Using VSCode Cloud Code plugin, select "Run on Cloud Run Emulator", and you will get a failed deployment.
Expected Result
I thought the application would run properly in the Cloud Run Emulator running through VSCode, just like the example provided by Google.
Actual Result
The application did not run properly in the Cloud Run Emulator.
Logs included:
Starting to run the app using configuration 'Cloud Run: Run/Debug Locally' from .vscode/launch.json...
To view more detailed logs, go to Output channel : "Cloud Run: Run/Debug Locally - Detailed"
Dependency check started
Dependency check succeeded
Unpausing minikube
The minikube profile 'cloud-run-dev-internal' has been scheduled to stop automatically after exiting Cloud Code. To disable this on future deployments, set autoStop to false in your launch configuration c:\lava\cloud-run\test\typist\.vscode\launch.json
Configuring minikube gcp-auth addon
Using GCP project 'id3d-test' with minikube gcp-auth
Update initiated
Deploy started
Deploy completed
Status check started
Resource pod/typist-579876c6d4-wdncw status updated to In Progress
Resource pod/typist-579876c6d4-wdncw status updated to In Progress
Resource deployment/typist status updated to In Progress
Resource pod/typist-579876c6d4-wdncw status updated to In Progress
Resource deployment/typist status failed with waiting for rollout to finish: 0 of 1 updated replicas are available...
Status check failed
Update failed with error code STATUSCHECK_CONTAINER_RESTARTING
1/1 deployment(s) failed
Skaffold exited with code 1.
Cleaning up...
Finished clean up.