Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename contact point to gateway address #137

Merged
merged 1 commit into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ The docker image for the worker is published to [GitHub Packages](https://github
```
docker pull ghcr.io/camunda-community-hub/zeebe-dmn-worker:1.0.0
```
* configure the connection to the Zeebe broker by setting `zeebe.client.broker.contactPoint` (default: `localhost:26500`)
* configure the connection to the Zeebe gateway by setting `zeebe.client.broker.gatewayAddress` (default: `localhost:26500`)
* configure the folder where the DMN files are located by setting `zeebe.client.worker.dmn.repository` (default: `dmn-repo`)

For a local setup, the repository contains a [docker-compose file](docker/docker-compose.yml). It starts a Zeebe broker and the worker.
For a local setup, the repository contains a [docker-compose file](docker/docker-compose.yml). It starts a Zeebe broker with an embedded gateway and the worker.

```
cd docker
Expand Down Expand Up @@ -76,7 +76,7 @@ zeebe:
dmn.repository: dmn-repo

job.timeout: 10000
broker.contactPoint: 127.0.0.1:26500
broker.gatewayAddress: 127.0.0.1:26500
security.plaintext: true
```

Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
container_name: zeebe-dmn-worker
image: ghcr.io/camunda-community-hub/zeebe-dmn-worker:1.0.0
environment:
- zeebe.client.broker.contactPoint=zeebe:26500
- zeebe.client.broker.gatewayAddress=zeebe:26500
- zeebe.client.worker.dmn.repository=/usr/share/zeebe/dmn-repo
volumes:
- ./dmn-repo:/usr/share/zeebe/dmn-repo
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ zeebe:

job.timeout: 10000
# remove the following two lines when using Camunda Cloud SaaS
broker.contactPoint: 127.0.0.1:26500
broker.gatewayAddress: 127.0.0.1:26500
security.plaintext: true

logging:
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/io/zeebe/dmn/WorkflowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public class WorkflowTest {
@BeforeAll
public static void init() {

final var gatewayContactPoint = ZEEBE_CONTAINER.getExternalGatewayAddress();
System.setProperty("zeebe.client.broker.contactPoint", gatewayContactPoint);
final var gatewayAddress = ZEEBE_CONTAINER.getExternalGatewayAddress();
System.setProperty("zeebe.client.broker.gatewayAddress", gatewayAddress);

ZEEBE_CLIENT =
ZeebeClient.newClientBuilder().gatewayAddress(gatewayContactPoint).usePlaintext().build();
ZeebeClient.newClientBuilder().gatewayAddress(gatewayAddress).usePlaintext().build();

// given
final BpmnModelInstance process =
Expand Down