Git Product home page Git Product logo

camunda8's Introduction

Camunda 8 Examples

This project contains multiple Zeebe spring boot workers that implement the service tasks required in the hello-world.bpm process.

service1 - deploys the bpmn diagram from service1/src/main/resources/hello-world.bpmn, implements the Hello service task

service2 - implements the World service task

Requirements

  • Docker compose 1.29
  • Download zeeba-hazelcast-exporter fat jar to the root of this project:

wget -O zeebe-hazelcast-exporter-1.1.0-jar-with-dependencies.jar https://github.com/camunda-community-hub/zeebe-hazelcast-exporter/releases/download/1.1.0/zeebe-hazelcast-exporter-1.1.0-jar-with-dependencies.jar

The provider docker-compose.yml will spin up Zeebe, Elasticsearch and the Simple Monitor.

Zeebe is configured with the Hazelcast exporter in memory exporter, settings are in the application.yaml

Running

docker-compose --profile in-memory up

Simple Monitor is running at http://localhost:8085

Once the Camunda stack is up and running. Launch the 2 Spring boot applications com.github.thar.camunda.Service1Application and com.github.thar.camunda.Service2Application

Trigger the hello world process either from Simple Monitor or the Camunda Modeler

The process requires an input variable called source , the json value can be anything e.g: source = {"name": "John"}

Experimental

The experimental folder contains docker-compose files for exporting data from Zeebe to Opensearch instead of Elasticsearch.

The experiment/cluster folder contains the docker equivalent of the Zeebe cluster Fargate stack described below.

Deploying on Fargate

Note: CDK v2 is required.

The cdk module contains a CDK application with a number of stacks for deploying Zeebe 8 on AWS Fargate.

$ cdk ls

zeebe-cluster
zeebe-cluster-with-monitor
zeebe-single


$ cdk diff zeebe-cluster

$ cdk deploy zeebe-cluster

zeebe-single will create a single Zeebe service (1 task, 1 container) instance on Fargate. The default VPC is used, the container is deployed into a public subnet. This uses the camunda/zeebe:8.0.0 from Docker hub. There is no additional configuration applied apart from the environment variables

zeebe-cluster, will deploy 1 Zeebe Gateway with 3 Zeebe broker nodes as Fargate services. The nodes use epheneral task storage instead of an EFS file system volume. Service discovery is enabled with a private dns namespace, so nodes can be addressed using <broker-name>.zeebe-cluster:<port>. This is important in order to get the Zeebe cluster to form, the dns names are used as the values passed to ZEEBE_BROKER_CLUSTER_INITIALCONTACTPOINTS. enableDnsSupport and enableDnsHostnames need to be enabled on the VPC - they usually are for the default VPC, but will need to be set if using a different VPC.

zeebe-cluster-with-monitor, same as zeebe-cluster, but also includes the Simple Nonitor application deployed behind an Application Load Balancer

zeebe-hazelcast-stack, will deploy Zeebe with the same network infrastructure as zeebe-stack but will also enable Hazelcast exporter. The Hazelcast exporter is added to custom Docker image and it is saved as a tar in the root project. The docker image will be uploaded to an ECR registry when cdk deploy is run The build-docker.sh script will generate the image and tar file.

$ ./build-docker.sh

$ cdk deploy zeebe-hazelcast-stack

Destroy all resources:

$ cdk destroy

AWS BILL WARNING - The ECR registry created with the zeebe-hazlecast-stack does not get deleted with cdk destroy. This needs to be done manually

camunda8's People

Contributors

renovate[bot] avatar tjayr avatar

Watchers

 avatar  avatar

camunda8's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

  • chore(deps): update all dependencies (actions/checkout, actions/setup-java, camunda/zeebe, ghcr.io/camunda-community-hub/zeebe-simple-monitor, gradle, gradle/gradle-build-action, opensearchproject/opensearch, opensearchproject/opensearch-dashboards, org.junit.jupiter:junit-jupiter, io.camunda:spring-zeebe-starter, software.amazon.awscdk:aws-cdk-lib, com.github.johnrengelman.shadow, io.spring.dependency-management, org.springframework.boot)

Detected dependencies

docker-compose
docker-compose.yml
  • ghcr.io/camunda-community-hub/zeebe-simple-monitor 2.4.1
experimental/cluster/docker-compose.yml
experimental/docker-compose-full.yml
  • ghcr.io/camunda-community-hub/zeebe-simple-monitor 2.4.1
experimental/docker-compose-opensearch.yml
  • opensearchproject/opensearch 2.3.0
  • opensearchproject/opensearch-dashboards 2.3.0
dockerfile
docker/Dockerfile
  • camunda/zeebe 8.1.1
github-actions
.github/workflows/gradle.yml
  • actions/checkout v3
  • actions/setup-java v3
  • gradle/gradle-build-action fd32ae908111fe31afa48827bd1ee909540aa971
gradle
settings.gradle
cdk/build.gradle
  • com.github.johnrengelman.shadow 7.1.2
  • software.amazon.awscdk:aws-cdk-lib 2.46.0
  • software.constructs:constructs [10.0.0,11.0.0)
  • org.junit.jupiter:junit-jupiter 5.9.1
service1/build.gradle
  • org.springframework.boot 2.7.4
  • io.spring.dependency-management 1.0.14.RELEASE
  • io.camunda:spring-zeebe-starter 8.1.0
service2/build.gradle
  • org.springframework.boot 2.7.4
  • io.spring.dependency-management 1.0.14.RELEASE
  • io.camunda:spring-zeebe-starter 8.1.0
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.5.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.