Softwr

Cloud · head to head

Google Cloud Run vs Trunk Code Quality

Google Cloud Run logo

Google Cloud Run

Cloud

Managed platform for running containers and functions on Google Cloud

From
On request
Free plan
No
Trunk Code Quality logo

Trunk Code Quality

Developer Tools

Metalinter that runs and manages linters, formatters and security scanners

From
Free
Free plan
Yes

The short version

  • Trunk Code Quality is free; Google Cloud Run prices on request.
  • Only Google Cloud Run lists deploy any container image; only Trunk Code Quality lists version pinning through trunk.yaml.
  • Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.
  • Where Trunk Code Quality falls short: private repositories with more than five active committers need a paid licence.

How do Google Cloud Run and Trunk Code Quality differ?

Google Cloud Run and Trunk Code Quality differ on starting price (On request against Free), pricing model (Usage-based against Freemium) and free tier (No against Yes). Only the attributes on which Google Cloud Run and Trunk Code Quality actually diverge.

Attributes where Google Cloud Run and Trunk Code Quality differ
AttributeGoogle Cloud RunTrunk Code Quality
Starting priceOn requestFree
Pricing modelUsage-basedFreemium
Free tierNoYes
PlatformsWebmacOS, Linux, Windows
CategoryCloudDeveloper Tools

Not yet recorded: founded for Google Cloud Run.

Which features does each one have?

They share no listed features; 9 appear only for Google Cloud Run and 8 only for Trunk Code Quality. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Google Cloud Run

  • Deploy any container image
  • Source-based builds for common languages
  • Services with automatic scaling and scale to zero
  • Jobs for scheduled or manual tasks
  • Worker pools for background processing
  • Traffic splitting and rollback between revisions
  • Custom domains and managed TLS
  • Request-based and instance-based billing

Only in Trunk Code Quality

  • Installs and runs over 100 linters and formatters
  • Version pinning through trunk.yaml
  • Hold the Line checks on new changes only
  • Background daemon that precomputes results
  • VS Code and Neovim editor integration
  • GitHub integration for pull request checks
  • Security scanning tools such as trivy and gitleaks
  • Runs in any CI environment

What is each one used for?

Google Cloud Run is most often brought in for hosting web APIs and microservices; Trunk Code Quality for running one lint command across a polyglot repository. The jobs each tool is most often brought in to do.

Google Cloud Run

  • Hosting web APIs and microservicesnot Trunk Code Quality
  • Scheduled batch jobsnot Trunk Code Quality
  • Queue consumers on worker poolsnot Trunk Code Quality
  • Deploying containers without managing clustersnot Trunk Code Quality
  • Event-driven backends with Pub/Subnot Trunk Code Quality

Trunk Code Quality

  • Running one lint command across a polyglot repositorynot Google Cloud Run
  • Gradually fixing legacy code with Hold the Linenot Google Cloud Run
  • Pinning linter versions across a teamnot Google Cloud Run
  • Enforcing the same checks locally and in CInot Google Cloud Run
  • Adding security scanners to pull requestsnot Google Cloud Run

Where do Google Cloud Run and Trunk Code Quality fall short?

Google Cloud Run's most cited limit: runs only on Google Cloud, so there is no self-hosted option. Trunk Code Quality's: private repositories with more than five active committers need a paid licence. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Google Cloud Run

  • Runs only on Google Cloud, so there is no self-hosted option
  • The container file system is in memory and not persistent
  • Worker pools do not autoscale natively and need at least one instance
  • Services are stateless, so state needs external storage

Trunk Code Quality

  • Private repositories with more than five active committers need a paid licence
  • Paid Team and Enterprise prices are not published; quotes come from sales
  • Core CLI is closed source, with only plugins and the GitHub Action under MIT
  • Results depend on the underlying linters, so rule coverage is not Trunk's own

How much do Google Cloud Run and Trunk Code Quality cost?

Trunk Code Quality is free to use. Plan by plan below, from each vendor's own pricing page.

Google Cloud Run

On request

No published plan breakdown. See the Google Cloud Run review.

Trunk Code Quality

Free
  • Free (up to 5 active committers on private repos)Free
  • Team (per seat)On request
  • Enterprise (annual site licence)On request

Which should you pick?

Choose Google Cloud Run if

  • You need deploy any container image.
  • You also want source-based builds for common languages.

Choose Trunk Code Quality if

  • You need installs and runs over 100 linters and formatters.
  • You want to start without paying.
  • You work on macOS, Linux, Windows.
  • You also want version pinning through trunk.yaml.

Questions people ask

Is Google Cloud Run or Trunk Code Quality better?
It depends on the job. Google Cloud Run fits hosting web APIs and microservices; Trunk Code Quality fits running one lint command across a polyglot repository. Google Cloud Run starts at On request and Trunk Code Quality at Free.
Which is cheaper, Google Cloud Run or Trunk Code Quality?
Trunk Code Quality has a free tier; the other does not. Paid plans start at On request for Google Cloud Run and Free for Trunk Code Quality.
Does Google Cloud Run or Trunk Code Quality run on more platforms?
Google Cloud Run runs on Web. Trunk Code Quality runs on macOS, Linux, Windows.
Can I use Trunk Code Quality for free?
Yes. Trunk Code Quality has a free tier, so you can try it without paying. Google Cloud Run starts at On request.
What is Google Cloud Run best used for?
Google Cloud Run is most often used for hosting web apis and microservices, scheduled batch jobs, queue consumers on worker pools, deploying containers without managing clusters. Of those, hosting web apis and microservices and scheduled batch jobs are not what Trunk Code Quality is typically brought in for.
What can Google Cloud Run do that Trunk Code Quality cannot?
Google Cloud Run covers Deploy any container image, Source-based builds for common languages, Services with automatic scaling and scale to zero, Jobs for scheduled or manual tasks. Trunk Code Quality covers Installs and runs over 100 linters and formatters, Version pinning through trunk.yaml, Hold the Line checks on new changes only, Background daemon that precomputes results.

Answered from the vendors’ own pages

Google Cloud Run: What can Cloud Run run?

Any container image, or source code for Go, Node.js, Python, Java.NET and Ruby that Google builds into a container.

Source
Trunk Code Quality: What does Trunk Code Quality do?

It is a metalinter that installs, pins and runs third party linters, formatters and security scanners from one CLI. A background daemon precomputes results for editor annotations.

Source
Google Cloud Run: How is Cloud Run billed?

Allocated CPU and memory are billed in 100 millisecond granularity, in request-based or instance-based mode. A free tier is available.

Source
Trunk Code Quality: Is Trunk Code Quality free?

Public and open source repositories have no stated usage limit, and private repositories with five or fewer active committers can use the CLI at no cost. Larger private teams need a paid licence.

Source
Google Cloud Run: Can Cloud Run scale to zero?

Yes. Services scale to zero when idle unless a minimum number of instances is set.

Source
Trunk Code Quality: Which operating systems are supported?

The launcher supports macOS and Linux. Windows is supported from CLI version 1.13.0, using git-bash, msys2 or a PowerShell launcher.

Source
Trunk Code Quality: How many linters does it support?

The supported linters page claims over 100 linters and formatters. They cover many languages plus infrastructure, security, SQL and Markdown tooling.

Source
Share

Related pages

Other head to heads