jayarjo
jayarjo

Reputation: 16716

Cheapest way to run simple NodeJS app in Google Cloud with some interval

What would be the cheapest way to launch Docker container with the app on Google Cloud from prebuilt image, let's say once in 10 minutes?

Upvotes: 0

Views: 177

Answers (1)

Martin Zeitler
Martin Zeitler

Reputation: 76639

Use Cloud Functions without the docker container; they can be scheduled.

If you need the container, use Cloud Run (one can build them with Cloud Build).

Every project comes with it's own private container registry; here's an example of mine, which shows how to build & tag docker container images and how to use them again. Cloud Build publishes to Pub/Sub, which may trigger a Cloud Function eg. to update a build badge.

Upvotes: 3

Related Questions