Skip to content

Commit

Permalink
updated dependencies to camunda 7.22, optimize 3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
lwluc committed Oct 18, 2024
1 parent b22040c commit 52c5ff4
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 35 deletions.
9 changes: 0 additions & 9 deletions .env

This file was deleted.

2 changes: 1 addition & 1 deletion camunda-platform-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("com.google.cloud.tools.jib") version "3.4.0"
}

version = "0.2"
version = "0.3"
group = "de.lw"

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import org.camunda.bpm.client.task.ExternalTaskHandler;
import org.camunda.bpm.client.task.ExternalTaskService;

import static java.lang.Long.parseLong;

@Slf4j
@Singleton
@ExternalTaskSubscription(topicName = "exampleWorker")
Expand All @@ -17,7 +15,7 @@ public class ExampleTaskHandler implements ExternalTaskHandler {
@Override
public void execute(ExternalTask externalTask,
ExternalTaskService externalTaskService) {
boolean shouldBeExecuted = parseLong(externalTask.getId()) % 2 == 0;
boolean shouldBeExecuted = (Math.random() * 49 + 1) % 2 == 0;

if (shouldBeExecuted) {
externalTaskService.complete(externalTask);
Expand Down
2 changes: 2 additions & 0 deletions camunda-platform-client/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
micronaut:
server:
port: 8081
application:
name: camunda-platform-client
camunda.external-client:
Expand Down
6 changes: 3 additions & 3 deletions camunda-platform-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ plugins {
id("com.google.cloud.tools.jib") version "3.4.0"
}

version = "0.2"
version = "0.3"
group = "de.lw"

repositories {
mavenCentral()
}

dependencies {
implementation("info.novatec:micronaut-camunda-bpm-feature:2.14.0")
implementation("info.novatec:micronaut-camunda-bpm-feature:2.18.1")
runtimeOnly("com.h2database:h2")

implementation("io.micronaut:micronaut-http-client")
Expand All @@ -23,7 +23,7 @@ dependencies {
runtimeOnly("org.postgresql:postgresql")

testImplementation("org.assertj:assertj-core")
testImplementation("org.camunda.bpm:camunda-bpm-assert:7.19.0")
testImplementation("org.camunda.bpm:camunda-bpm-assert:7.22.0")
}


Expand Down
4 changes: 0 additions & 4 deletions camunda-platform-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ camunda:
firstName: Peter
last-name: Parker
email: [email protected]
generic-properties:
properties:
initialize-telemetry: false
telemetry-reporter-activate: false
rest:
enabled: true
webapps:
Expand Down
24 changes: 9 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "2"
services:

camunda-platform-server:
Expand All @@ -12,11 +11,13 @@ services:
image: lwluc/camunda-platform-client
container_name: camunda-platform-client
mem_limit: 512M
environment:
- MICRONAUT_ENVIRONMENTS=docker
depends_on:
- camunda-platform-server

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.6.2
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.4
container_name: elasticsearch
ports:
- 9200:9200
Expand All @@ -25,13 +26,13 @@ services:
environment:
- node.name=elasticsearch
- discovery.type=single-node
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- ELASTIC_PASSWORD=password
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
- xpack.security.transport.ssl.enabled=false
- xpack.license.self_generated.type=${LICENSE}
mem_limit: ${MEM_LIMIT}
- xpack.license.self_generated.type=basic
mem_limit: 1073741824
ulimits:
memlock:
soft: -1
Expand All @@ -47,22 +48,15 @@ services:
retries: 120

camunda-optimize:
image: registry.camunda.cloud/optimize-ee/optimize:3.10.5
image: registry.camunda.cloud/optimize-ee/optimize:3.14.0
mem_limit: 512M
environment:
- OPTIMIZE_CAMUNDABPM_REST_URL=http://camunda-platform-server:8080/engine-rest
- OPTIMIZE_ELASTICSEARCH_HOST=elasticsearch
- OPTIMIZE_ELASTICSEARCH_HTTP_PORT=9200
- OPTIMIZE_ES_SECURITY_USERNAME="elastic"
- OPTIMIZE_ES_SECURITY_PASSWORD=${ELASTIC_PASSWORD}
- OPTIMIZE_EVENT_BASED_PROCESSES_IMPORT_ENABLED=true
- OPTIMIZE_CAMUNDA_BPM_EVENT_IMPORT_ENABLED=true
- OPTIMIZE_EVENT_INGESTION_ACCESS_TOKEN=demo
- OPTIMIZE_EVENT_BASED_PROCESSES_USER_IDS=[admin]
- ABSOLUTE_PATH_ON_HOST_TO_CONFIGURATION_FILE:/optimize/config/environment-config.yaml:ro
depends_on:
- camunda-platform-server
- elasticsearch
volumes:
- ./optimize-environment-config.yaml:/optimize/config/environment-config.yaml
- ./licenses/OptimizeLicense.txt:/optimize/config/OptimizeLicense.txt:ro
restart: always
ports:
Expand Down
27 changes: 27 additions & 0 deletions optimize-environment-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
security:
auth:
token:
secret: demo
superUserIds: [admin]

engines:
"demo-engine":
rest: "http://camunda-platform-server:8080/engine-rest"
authentication:
enabled: false
webapps:
enabled: false

es:
connection:
nodes:
- host: elasticsearch
httpPort: 9200
security:
username: elastic
password: password

eventBasedProcess:
authorizedUserIds: [admin]
eventImport:
enabled: true

0 comments on commit 52c5ff4

Please sign in to comment.