You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This readme explain the step to step to run this sample in Docker.
4
+
5
+
We will use the ODM for developper image. No needs to have an ODM installed.
6
+
We needs to have build the image as explain in the [README.md](README.md) file.
7
+
8
+
### Run the sample
9
+
10
+
1. Run ODM and Notifiers docker images
11
+
```bash
12
+
docker-compose -f docker-compose.yaml -f compose-odm-dev.yml up
13
+
```
14
+
15
+
2. Register the webhook in Decision Center using the REST API tool, providing the token and URL (`http://localhost:3000/slack` and `http://localhost:3000/print`).
Once the webhook is set up, events from the Decision Center will trigger the notifications and either post messages to Slack or generate log files in the `results` directory.
52
+
53
+
You can trigger an event by deploying a rule app for example.
54
+
55
+
You can see the notification in the docker-compose windows.
* DC_URL : The URL where decision center is accessible.
54
+
* NAMESPACE : The namespace where the sample has been deployed.
55
+
* GENERATED_TOKEN : The token generated in the previous step.
56
+
* USERNAME_PASSWORD : If you installed the demo or starter mode you can put odmAdmin:odmAdmin
57
+
58
+
### Using the Sample
59
+
60
+
Once the webhook is set up, events from the Decision Center will trigger the notifications and either post messages to Slack or generate log files in the `results` directory.
61
+
62
+
You can trigger an event by deploying a rule app for example.
63
+
64
+
You can see the notification in the docker-compose windows.
* DC_URL : The URL where decision center is accessible.
85
-
* NAMESPACE : The namespace where the sample has been deployed.
86
-
* GENERATED_TOKEN : The token generated in the previous step.
87
-
* USERNAME_PASSWORD : If you installed the demo or starter mode you can put odmAdmin:odmAdmin
88
-
89
-
### 2.2 Run this sample on Docker
90
-
We will use the ODM for developper image. No needs to have an ODM installed.
91
-
92
-
1. Run ODM and Notifiers docker images
93
-
```bash
94
-
docker-compose -f docker-compose.yaml -f compose-odm-dev.yml up
95
-
```
96
-
97
-
2. Register the webhook in Decision Center using the REST API tool, providing the token and URL (`http://localhost:3000/slack` and `http://localhost:3000/print`).
Once the webhook is set up, events from the Decision Center will trigger the notifications and either post messages to Slack or generate log files in the `results` directory.
134
-
135
-
You can trigger an event by deploying a rule app for example.
136
-
137
-
You can see the notification in the docker-compose windows.
0 commit comments