[{"data":1,"prerenderedAt":216},["ShallowReactive",2],{"term-c\u002Fcloud-run":3,"related-c\u002Fcloud-run":193},{"id":4,"title":5,"acronym":6,"body":7,"category":172,"description":173,"difficulty":174,"extension":175,"letter":176,"meta":177,"navigation":85,"path":178,"related":179,"seo":187,"sitemap":188,"stem":191,"subcategory":6,"__hash__":192},"terms\u002Fterms\u002Fc\u002Fcloud-run.md","Cloud Run",null,{"type":8,"value":9,"toc":166},"minimark",[10,15,19,23,26,30,155,159,162],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Cloud Run is GCP's magic platform for running containerized apps without managing servers. You give it a Docker container, set how much CPU\u002FRAM it needs, and it runs it on demand. It scales to zero when nobody's using it and to hundreds of instances during traffic spikes. It's basically GCP's answer to Lambda but for full containers.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Google Cloud Run is a fully managed serverless platform for running stateless containers. It auto-scales from zero to N instances based on HTTP traffic or events, with per-100ms billing. Containers must listen on a port and handle HTTP requests. Supports any language\u002Fframework since it's container-based.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Build and deploy to Cloud Run\ndocker build -t gcr.io\u002Fmy-project\u002Fmy-app:latest .\ndocker push gcr.io\u002Fmy-project\u002Fmy-app:latest\n\ngcloud run deploy my-app \\\n  --image gcr.io\u002Fmy-project\u002Fmy-app:latest \\\n  --platform managed \\\n  --region us-central1 \\\n  --allow-unauthenticated \\\n  --memory 512Mi\n","bash","",[38,39,40,49,69,80,87,106,116,127,138,146],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Build and deploy to Cloud Run\n",[41,50,52,56,60,63,66],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","docker",[41,57,59],{"class":58},"sfazB"," build",[41,61,62],{"class":58}," -t",[41,64,65],{"class":58}," gcr.io\u002Fmy-project\u002Fmy-app:latest",[41,67,68],{"class":58}," .\n",[41,70,72,74,77],{"class":43,"line":71},3,[41,73,55],{"class":54},[41,75,76],{"class":58}," push",[41,78,79],{"class":58}," gcr.io\u002Fmy-project\u002Fmy-app:latest\n",[41,81,83],{"class":43,"line":82},4,[41,84,86],{"emptyLinePlaceholder":85},true,"\n",[41,88,90,93,96,99,102],{"class":43,"line":89},5,[41,91,92],{"class":54},"gcloud",[41,94,95],{"class":58}," run",[41,97,98],{"class":58}," deploy",[41,100,101],{"class":58}," my-app",[41,103,105],{"class":104},"sTEyZ"," \\\n",[41,107,109,112,114],{"class":43,"line":108},6,[41,110,111],{"class":58},"  --image",[41,113,65],{"class":58},[41,115,105],{"class":104},[41,117,119,122,125],{"class":43,"line":118},7,[41,120,121],{"class":58},"  --platform",[41,123,124],{"class":58}," managed",[41,126,105],{"class":104},[41,128,130,133,136],{"class":43,"line":129},8,[41,131,132],{"class":58},"  --region",[41,134,135],{"class":58}," us-central1",[41,137,105],{"class":104},[41,139,141,144],{"class":43,"line":140},9,[41,142,143],{"class":58},"  --allow-unauthenticated",[41,145,105],{"class":104},[41,147,149,152],{"class":43,"line":148},10,[41,150,151],{"class":58},"  --memory",[41,153,154],{"class":58}," 512Mi\n",[11,156,158],{"id":157},"when-youll-hear-this","When You'll Hear This",[16,160,161],{},"\"We deploy the API as a Cloud Run service — it handles autoscaling automatically.\" \u002F \"Cloud Run scales to zero overnight so we don't pay for idle capacity.\"",[163,164,165],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":167},[168,169,170,171],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":157,"depth":51,"text":158},"cloud","Cloud Run is GCP's magic platform for running containerized apps without managing servers.","intermediate","md","c",{},"\u002Fterms\u002Fc\u002Fcloud-run",[180,181,182,183,184,185,186],"GCP","Docker","Serverless","Container","Fargate","FaaS","Auto Scaling",{"title":5,"description":173},{"changefreq":189,"priority":190},"weekly",0.7,"terms\u002Fc\u002Fcloud-run","3RU5O1HerSBesZlD6o4StjBf3Y5RBbgMsMSyvCIdUTE",[194,197,202,205,209,212],{"title":186,"path":195,"acronym":6,"category":172,"difficulty":174,"description":196},"\u002Fterms\u002Fa\u002Fauto-scaling","Auto scaling is when the cloud automatically adds more servers when traffic spikes and removes them when it drops, so you're not paying for idle machines a...",{"title":183,"path":198,"acronym":6,"category":199,"difficulty":200,"description":201},"\u002Fterms\u002Fc\u002Fcontainer","cicd","beginner","A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from.",{"title":181,"path":203,"acronym":6,"category":199,"difficulty":200,"description":204},"\u002Fterms\u002Fd\u002Fdocker","Docker is like a lunchbox for your app.",{"title":185,"path":206,"acronym":207,"category":172,"difficulty":174,"description":208},"\u002Fterms\u002Ff\u002Ffaas","Function as a Service","FaaS is when you write a tiny function and deploy it to the cloud, and it only runs (and charges you) when someone calls it.",{"title":184,"path":210,"acronym":6,"category":172,"difficulty":174,"description":211},"\u002Fterms\u002Ff\u002Ffargate","Fargate is AWS's 'serverless containers' magic. You run Docker containers without ever seeing or touching an EC2 server. AWS figures out where to run them.",{"title":180,"path":213,"acronym":214,"category":172,"difficulty":200,"description":215},"\u002Fterms\u002Fg\u002Fgcp","Google Cloud Platform","GCP is Google's version of the giant rental computer warehouse.",1776518266155]