3 ms·
I highly recommend Google Cloud Run: https://cloud.google.com/run https://cloud.google.com/run
by nreece 4y ago
I highly recommend Google Cloud Run: https://cloud.google.com/run https://cloud.google.com/run
- reducesuffering 4y agoIsn't that like $40/mth to keep a container up? I think it's more geared towards ephemeral short-term container workloads.
- nreece 4y agoIts pricing is pay-per-use (request or event processing), so there's no monthly minimum. They also offer a decent free tier. An API we migrated handles millions of transactions, and costs less than $3/month to run, even cheaper than their Cloud Functions product.
- thiht 4y agoI finally settled on this but it wasn’t easy either. I had to create: - an artifact repository and a Docker repository, because cloud run refuses to run images from a different repository - a service account (in a completely different section) - add the correct role on the account, in yet another section - retrieve the password, the username and url of the Docker repo (I had to read blog articles to find these) - and then finally push my image. Configuring the container was easy after that, but I haven’t found yet how to configure continuous deployment from my CI pipeline. I guess I’ll have to use the gcp cli but it doesn’t seem obvious how to do it.
- nreece 4y agoIt's usually just one command: gcloud run deploy See 'Deploying to Cloud Run from source': https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-nodejs-service#deploy https://cloud.google.com/run/docs/quickstarts/build-and-depl... I also like deploying to Cloud Run right from Cloud Shell Editor (their web IDE, viz like VS Code in the browser): https://shell.cloud.google.com https://shell.cloud.google.com