News for hackers. Stuff that matters.
Re:Ask HN: Where to deploy a Docker container easily? by nreece on Wednesday April 20, 2022 @11:40PM (#31105829)
I highly recommend Google Cloud Run: https://cloud.google.com/run
Re:Ask HN: Where to deploy a Docker container easily? by thiht on Thursday April 21, 2022 @05:53PM (#31115645)
I 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.

Re:Ask HN: Where to deploy a Docker container easily? by nreece on Thursday April 21, 2022 @10:50PM (#31117683)
It's usually just one command:

  gcloud run deploy
See 'Deploying to Cloud Run from source': 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

Re:Ask HN: Where to deploy a Docker container easily? by reducesuffering on Thursday April 21, 2022 @03:26AM (#31106829)
Isn't that like $40/mth to keep a container up? I think it's more geared towards ephemeral short-term container workloads.
Re:Ask HN: Where to deploy a Docker container easily? by nreece on Thursday April 21, 2022 @05:07AM (#31107338)
Its 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.