diff --git a/docker/.env b/docker/.env deleted file mode 100644 index 34749c5..0000000 --- a/docker/.env +++ /dev/null @@ -1,47 +0,0 @@ -## Image versions ## -# renovate: datasource=docker depName=camunda/connectors-bundle -CAMUNDA_CONNECTORS_VERSION=8.5.7 - -# renovate: datasource=docker depName=camunda/zeebe -CAMUNDA_PLATFORM_VERSION=8.5.6 - -# renovate: datasource=docker depName=camunda/identity -CAMUNDA_IDENTITY_VERSION=8.5.5 - -# renovate: datasource=docker depName=camunda/operate -CAMUNDA_OPERATE_VERSION=8.5.5 - -# renovate: datasource=docker depName=camunda/tasklist -CAMUNDA_TASKLIST_VERSION=8.5.4 - -# renovate: datasource=docker depName=camunda/optimize -CAMUNDA_OPTIMIZE_VERSION=8.5.4 - -# renovate: datasource=docker depName=camunda/web-modeler lookupName=registry.camunda.cloud/web-modeler-ee/modeler-restapi -CAMUNDA_WEB_MODELER_VERSION=8.5.7 -# renovate: datasource=docker depName=elasticsearch -ELASTIC_VERSION=8.15.0 -KEYCLOAK_SERVER_VERSION=24.0.5 -# renovate: datasource=docker depName=axllent/mailpit -MAILPIT_VERSION=v1.20.3 -POSTGRES_VERSION=14.5-alpine -HOST=localhost -KEYCLOAK_HOST=localhost - -## Configuration ## -# By default the zeebe api is public, when setting this to `identity` a valid zeebe client token is required -ZEEBE_AUTHENTICATION_MODE=none -ZEEBE_CLIENT_ID=zeebe -ZEEBE_CLIENT_SECRET=zecret - -# Set to 'true' to enable resource based authorizations for users and groups -# This can be used to limit access for users or groups to view/update specific -# processes and decisions in Operate and Tasklist -RESOURCE_AUTHORIZATIONS_ENABLED=false - -# Set to 'true' to enable multi-tenancy across all components -# This requires use of identity for authentication -# -# ZEEBE_AUTHENTICATION_MODE=identity -# -MULTI_TENANCY_ENABLED=false \ No newline at end of file diff --git a/docker/connector-secrets.txt b/docker/connector-secrets.txt deleted file mode 100644 index e1f43a6..0000000 --- a/docker/connector-secrets.txt +++ /dev/null @@ -1 +0,0 @@ -MOCO_API_KEY=abcdef \ No newline at end of file diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml deleted file mode 100644 index 54f19b0..0000000 --- a/docker/docker-compose.yml +++ /dev/null @@ -1,173 +0,0 @@ -# While the Docker images themselves are supported for production usage, -# this docker-compose.yaml is designed to be used by developers to run -# an environment locally. It is not designed to be used in production. -# We recommend to use Kubernetes in production with our Helm Charts: -# https://docs.camunda.io/docs/self-managed/platform-deployment/kubernetes-helm/ -# For local development, we recommend using KIND instead of `docker-compose`: -# https://docs.camunda.io/docs/self-managed/platform-deployment/helm-kubernetes/guides/local-kubernetes-cluster/ - -# This is a lightweight configuration with Zeebe, Operate, Tasklist, and Elasticsearch -# See docker-compose.yml for a configuration that also includes Optimize, Identity, and Keycloak. - -services: - - mountebank: - image: bbyars/mountebank:2.9.1 - ports: - - "2525:2525" - - "4545:4545" - - "5555:5555" - zeebe: # https://docs.camunda.io/docs/self-managed/platform-deployment/docker/#zeebe - image: camunda/zeebe:${CAMUNDA_PLATFORM_VERSION} - container_name: zeebe - ports: - - "26500:26500" - - "9600:9600" - - "8088:8080" - environment: # https://docs.camunda.io/docs/self-managed/zeebe-deployment/configuration/environment-variables/ - - ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_CLASSNAME=io.camunda.zeebe.exporter.ElasticsearchExporter - - ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_ARGS_URL=http://elasticsearch:9200 - # default is 1000, see here: https://github.com/camunda/zeebe/blob/main/exporters/elasticsearch-exporter/src/main/java/io/camunda/zeebe/exporter/ElasticsearchExporterConfiguration.java#L259 - - ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_ARGS_BULK_SIZE=1 - # allow running with low disk space - - ZEEBE_BROKER_DATA_DISKUSAGECOMMANDWATERMARK=0.998 - - ZEEBE_BROKER_DATA_DISKUSAGEREPLICATIONWATERMARK=0.999 - - "JAVA_TOOL_OPTIONS=-Xms512m -Xmx512m" - restart: unless-stopped - healthcheck: - test: [ "CMD-SHELL", "timeout 10s bash -c ':> /dev/tcp/127.0.0.1/9600' || exit 1" ] - interval: 30s - timeout: 5s - retries: 5 - start_period: 30s - volumes: - - zeebe:/usr/local/zeebe/data - networks: - - camunda-platform - depends_on: - - elasticsearch - - operate: # https://docs.camunda.io/docs/self-managed/platform-deployment/docker/#operate - image: camunda/operate:${CAMUNDA_OPERATE_VERSION} - container_name: operate - ports: - - "8081:8080" - environment: # https://docs.camunda.io/docs/self-managed/operate-deployment/configuration/ - - CAMUNDA_OPERATE_ZEEBE_GATEWAYADDRESS=zeebe:26500 - - CAMUNDA_OPERATE_ELASTICSEARCH_URL=http://elasticsearch:9200 - - CAMUNDA_OPERATE_ZEEBEELASTICSEARCH_URL=http://elasticsearch:9200 - - CAMUNDA_OPERATE_CSRFPREVENTIONENABLED=false - - management.endpoints.web.exposure.include=health - - management.endpoint.health.probes.enabled=true - healthcheck: - test: [ "CMD-SHELL", "wget -O - -q 'http://localhost:8080/actuator/health/readiness'" ] - interval: 30s - timeout: 1s - retries: 5 - start_period: 30s - networks: - - camunda-platform - depends_on: - - zeebe - - elasticsearch - -# tasklist: # https://docs.camunda.io/docs/self-managed/platform-deployment/docker/#tasklist -# image: camunda/tasklist:${CAMUNDA_TASKLIST_VERSION} -# container_name: tasklist -# ports: -# - "8082:8080" -# environment: # https://docs.camunda.io/docs/self-managed/tasklist-deployment/configuration/ -# - CAMUNDA_TASKLIST_ZEEBE_GATEWAYADDRESS=zeebe:26500 -# - CAMUNDA_TASKLIST_ZEEBE_RESTADDRESS=http://zeebe:8080 -# - CAMUNDA_TASKLIST_ELASTICSEARCH_URL=http://elasticsearch:9200 -# - CAMUNDA_TASKLIST_ZEEBEELASTICSEARCH_URL=http://elasticsearch:9200 -# - CAMUNDA_TASKLIST_CSRFPREVENTIONENABLED=false -# - management.endpoints.web.exposure.include=health -# - management.endpoint.health.probes.enabled=true -# healthcheck: -# test: [ "CMD-SHELL", "wget -O - -q 'http://localhost:8080/actuator/health/readiness'" ] -# interval: 30s -# timeout: 1s -# retries: 5 -# start_period: 30s -# networks: -# - camunda-platform -# depends_on: -# - zeebe -# - elasticsearch - - connectors: # https://docs.camunda.io/docs/components/integration-framework/connectors/out-of-the-box-connectors/available-connectors-overview/ - image: camunda/connectors-bundle:${CAMUNDA_CONNECTORS_VERSION} - container_name: connectors - ports: - - "8085:8080" - environment: - - ZEEBE_CLIENT_BROKER_GATEWAY-ADDRESS=zeebe:26500 - - ZEEBE_CLIENT_SECURITY_PLAINTEXT=true - - CAMUNDA_OPERATE_CLIENT_URL=http://operate:8080 - - CAMUNDA_OPERATE_CLIENT_USERNAME=demo - - CAMUNDA_OPERATE_CLIENT_PASSWORD=demo - - management.endpoints.web.exposure.include=health - - management.endpoint.health.probes.enabled=true - healthcheck: - test: [ "CMD-SHELL", "curl -f http://localhost:8080/actuator/health/readiness" ] - interval: 30s - timeout: 1s - retries: 5 - start_period: 30s - env_file: connector-secrets.txt - networks: - - camunda-platform - depends_on: - - zeebe - - operate - - elasticsearch: # https://hub.docker.com/_/elasticsearch - image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION} - container_name: elasticsearch - ports: - - "9200:9200" - - "9300:9300" - environment: - - bootstrap.memory_lock=true - - discovery.type=single-node - - xpack.security.enabled=false - # allow running with low disk space - - cluster.routing.allocation.disk.threshold_enabled=false - - "ES_JAVA_OPTS=-Xms512m -Xmx512m" - ulimits: - memlock: - soft: -1 - hard: -1 - restart: unless-stopped - healthcheck: - test: [ "CMD-SHELL", "curl -f http://localhost:9200/_cat/health | grep -q green" ] - interval: 30s - timeout: 5s - retries: 3 - volumes: - - elastic:/usr/share/elasticsearch/data - networks: - - camunda-platform - - kibana: - image: docker.elastic.co/kibana/kibana:${ELASTIC_VERSION} - container_name: kibana - ports: - - 5601:5601 - volumes: - - kibana:/usr/share/kibana/data - networks: - - camunda-platform - depends_on: - - elasticsearch - profiles: - - kibana - -volumes: - zeebe: - elastic: - kibana: - -networks: - camunda-platform: \ No newline at end of file diff --git a/mountebank/README.md b/mountebank/README.md deleted file mode 100644 index ca5c163..0000000 --- a/mountebank/README.md +++ /dev/null @@ -1,10 +0,0 @@ -## Mountebank Stub for Moco - -Mountebank is RERST API mocking framework which answers calls to it with realistic answers. To achieve this you can -set up an imposter under the path of the API. - -* start the mountebank container in your docker environment -* use a REST client of your choosing -* POST to `http://localhost:2525/imposters` with the `subs.json` as JSON payload -* DELETE to `http://localhost:2525/imposters` to delete all imposters -* Check `http://localhost:2525` in your browser, if your imposter is there \ No newline at end of file diff --git a/mountebank/stubs.json b/mountebank/stubs.json deleted file mode 100644 index 4c210d4..0000000 --- a/mountebank/stubs.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "port": 4545, - "protocol": "http", - "stubs": [ - { - "responses": [ - { - "is": { - "statusCode": 200, - "body": { - "id": 123, - "date": "2024-01-01", - "comment": "Auto-generated absence by the Camunda Moco Connector", - "am": true, - "pm": true, - "symbol": null, - "assignment": { - "id": 123, - "name": "Sick Leave", - "code": "3", - "customer_name": "Consid GmbH", - "color": "#BBB", - "type": "Absence" - }, - "user": { - "id": 123, - "firstname": "Max", - "lastname": "Mustermann" - }, - "created_at": "2024-01-02T09:33:46Z", - "updated_at": "2024-01-02T09:33:46Z" - } - } - } - ], - "predicates": [ - { - "and": [ - { - "equals": { - "path": "/api/v1/schedules", - "method": "POST", - "headers": { - "Content-Type": "application/json" - } - } - }, - { - "exists": { - "headers": { - "Authorization": "Token token=abcdef" - } - } - } - ] - } - ] - }, - { - "responses": [ - { - "is": { - "statusCode": 404 - } - } - ], - "predicates": [ - { - "not": { - "exists": { - "headers": { - "Authorization": "Token token=abcdef" - } - } - } - } - ] - } - ] -}