Skip to content

kaminskypavel/cloudrun-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudrun-Sandbox

execute user generated code on cloud-run (GKE)

cloudrun code

Run Locally

  • Deploy packages/backend to cloud run
  • yarn start-editor
  • use the endpoint from step 1

Backend

Deploy

make sure gutils are installed

Build the multi-lang-img

  • cd multi-lang-img
  • gcloud builds submit --tag gcr.io/<PROJECT-NAME>/cloud-sandbox/multi-lang-img

Upload Backend Server

  • cd packages/backend/multi-lang-img
  • gcloud builds submit --tag gcr.io/<PROJECT-NAME>/cloud-sandbox-server

Google cloud run

  • use the built link to test your code

Todo

  • introduce stress testing
  • [backend] add helm protection on overuse
  • [backend] improve intra-process communication (currently done with stdout)