Run Camunda BPM on Google Cloud Run

Ruslan Gainutdinov
Apr 13 · 4 min read

Recently Google Cloud launched a new (beta) service to run serverless container-based applications. This service does not require you to do complex platform-specific packaging. You just need to create a Docker container which follows Cloud Run container contract.

New to Camunda?

Camunda is an awesome workflow automation platform which allows you to orchestrate complex microservice interactions and human-oriented actions across different applications and platforms.

New to Cloud Run?

Here is a short explanation of what a Cloud Run is

Google Cloud Run
Introduction to Google Cloud Run

Already got a Google Cloud account? Run Camunda in 5 minutes using 5 lines on the terminal. I`ve used my open source repo so you can deploy it and use immediately.

You need to select the default project you will launch Cloud Run in. Use project-id from

> gcloud config set project <your-project-id>

As Cloud Run is in beta state now, to enable it in CLI you need to download and install beta commands.

> gcloud components install beta

Enable this specific APIs either using CLI or

> gcloud services enable

Choose default region for Cloud Run. Currently, only us-central1 region is supported.

> gcloud config set run/region us-central1

Use Camunda BPM image based on Spring Boot

> gcloud beta run deploy --image --memory=1G
Service name: (camunda-bpm-platform): mycamunda
Deploying container to Cloud Run service [mycamunda] in project [<your-project-id>] region [us-central1]
Allow unauthenticated invocations to new service [mycamunda]? (y/N)? Y
✓ Deploying new service…
✓ Creating Revision…
✓ Routing traffic…
Service [mycamunda] revision [mycamunda–00001] has been deployed and is serving traffic at

(link are an example only, you will get your own link when you run a command)

Boom! You have a running serverless Camunda BPM 🎉🎉 When you open link in the browser you will find launchpad with links for most useful prepackaged resources

After Camunda launches, visit Google Cloud Console for logs and look for the line containing a randomly generated password:

========= YOUR CAMUNDA PASSWORD IS cafebeef =========

alternatively, you can define password using variables during startup i.e. CAMUNDA_PWD

gcloud beta run deploy --image \
--memory=1G \

The default username is demo, you can login by clicking Cockpit on the Launchpad

After login, feel free to look around and explore processes and instances

Cockpit to monitor deployed processes

You can run new instances by going to Tasklist and starting a new process

Starting process from Tasklist

By default, Camunda docker container uses an embedded database for process definitions and instances. Therefore, on every restart of the service (either because of elastic scaling or after a period of inactivity) all the persistent changes will be lost.

To configure an external, cloud-hosted persistent database, change Camunda Spring Boot configuration settings

Ruslan is the Tech Lead at the Futurice working on backend, architecture and cloud projects.

Ruslan Gainutdinov

Written by

Tech Lead & Software engineer with a passion for #DevRel, Serverless, Java, and Javascript.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade