Skip to content

Commit 1f881bc

Browse files
Improve tryit doco (#118)
* include some images of docker succes statuses * remainder of tryit images for rabbit * revert accidental checkin * A few small changes * A few more improvements with added commands * Added images to Azure --------- Co-authored-by: John Simons <[email protected]>
1 parent eb5a9f7 commit 1f881bc

File tree

10 files changed

+52
-33
lines changed

10 files changed

+52
-33
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ To help getting started we have created a few docker compose files that orchestr
1313
* Third, run the following command:
1414

1515
```cmd
16-
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env up -d
16+
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env up -d --build
1717
```
1818

19+
![Docker Compose Up](docs/compose-up.png "Docker Compose up results")
20+
1921
### (Alternative) Run in Docker against **Azure Service Bus**
2022

2123
<details>
@@ -29,7 +31,7 @@ CONNECTIONSTRING="Endpoint=sb://[NAMESPACE].servicebus.windows.net/;SharedAccess
2931
Run docker command below from the `src` folder in a terminal.
3032

3133
```cmd
32-
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-azure.yml --env-file asb.env up -d
34+
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-azure.yml --env-file asb.env up -d --build
3335
```
3436

3537
</details>

docs/azure.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,39 @@
33
If you encounter any issues running the steps below, try the [troubleshooting](#troubleshooting) section or post a question on [our forum](https://discuss.particular.net/tag/masstransit).
44

55
1. Open a terminal and run the following command to shut down the showcase containers if they are running:
6-
76
```cmd
87
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-azure.yml --env-file asb.env down
98
```
9+
All of the containers should be shown as `Removed` and there should no longer be any containers running under `particular-platform-showcase` in docker.
1010

11-
- All of the containers should be shown as `Stopped` and there should no longer be any containers running under `particular-platform-showcase` in docker
11+
![Docker Compose Down](./compose-down-azure.png "Docker Compose down results")
1212

1313
1. Open the `src/asb.env` file, located in the folder that the showcase is cloned to, in an editor and update the `CONNECTION_STRING` to point to your own Azure Service Bus namespace.
14+
1. To validate that the broker can be reached, run the following command:
15+
```cmd
16+
docker run --env-file asb.env --rm particular/servicecontrol-masstransit-connector:latest health-check
17+
```
1418
1. Update the list of queues you want to monitor by editing the `src/queues.txt` file, also located in the folder that the showcase is cloned to. Remember that Azure Service Bus queue names are all lowercase.
19+
To automate this task you can run the following CLI command:
20+
```cmd
21+
docker run --env-file asb.env --rm particular/servicecontrol-masstransit-connector:latest queues-list
22+
```
23+
The command above will output a list of queues, that can be copy-paste into the `src/queues.txt`. **Please ensure you review this list**.
1524
1. Run the following command to start the required containers with the updated environment settings:
16-
1725
```cmd
18-
docker compose -p particular-platform -f docker-compose-base.yml --env-file asb.env --profile infrastructure up
26+
docker compose -p particular-platform -f docker-compose-base.yml --env-file asb.env --profile infrastructure up -d
1927
```
2028

21-
- The containers should all show a status of `Healthy`
22-
23-
1. Verify that the setup was correct by navigating to http://localhost:9090/#/configuration/mass-transit-connector.
24-
- All of the configured queues for your system should show here
25-
- For each row in the list of queues: if the queues exist, the status should be green `OK`. If the queues don't exist, i.e. there have never been any errors on that consumer, or if there is an issue connecting to the broker then the status will be red `Not ingesting`.
26-
- If the status is `Not ingesting`, the reason for this can be found in the log entries shown below the queue list.
27-
- Any messages that existed in the error queues should now have been ingested, and will be shown in [Failed Messages](http://localhost:9090/#/failed-messages/all-failed-messages)
29+
ServiceControl should show a status of `Healthy`.
2830

29-
## Troubleshooting
31+
![Docker Compose Infrastructure](./compose-infrastructure-up.png "Docker Compose up infrastructure only").
32+
33+
Docker should now show a `particular-platform` container group.
34+
35+
![Docker running infrastructure](./local-rabbit-docker.png "Docker running infrastructure")
3036

31-
-
32-
-
37+
1. Verify that the setup was correct by navigating to http://localhost:9090/#/configuration/mass-transit-connector.
38+
- All of the configured queues for your system should show here.
39+
- For each row in the list of queues: if the queues exist, the status should be green. If the queues don't exist, i.e. there have never been any errors on that consumer, or if there is an issue connecting to the broker then the status will be red.
40+
- If the status is red, the reason for this can be found in the log entries shown below the queue list.
41+
- Any messages that existed in the error queues should now have been ingested, and will be shown in [Failed Messages](http://localhost:9090/#/failed-messages/all-failed-messages).

docs/compose-down-azure.png

16.3 KB
Loading

docs/compose-down-rabbit.png

17.6 KB
Loading

docs/compose-infrastructure-up.png

6.84 KB
Loading

docs/compose-up.png

25.7 KB
Loading

docs/local-rabbit-docker.png

61.9 KB
Loading

docs/rabbit.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,43 @@
33
If you encounter any issues running the steps below, try the [troubleshooting](#troubleshooting) section or ask on [our forum](https://discuss.particular.net/tag/masstransit).
44

55
1. Open a terminal and run the following command to shut down the showcase containers:
6-
76
```cmd
87
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env down
98
```
10-
11-
- All of the containers should be shown as `Stopped` and there should no longer be any containers running under `particular-platform-showcase` in docker
9+
All of the containers should be shown as `Removed` and there should no longer be any containers running under `particular-platform-showcase` in docker.
10+
11+
![Docker Compose Down](./compose-down-rabbit.png "Docker Compose down results")
1212

1313
1. Open `src/rabbit.env` file, located in the folder that the showcase is cloned to, in an editor and update the RabbitMQ configuration to point to your own RabbitMQ instance.
14-
- `CONNECTION_STRING` A special connection string to connect to RabbitMQ, see https://docs.particular.net/servicecontrol/transports#rabbitmq for syntax format.
15-
- `RABBITMQ_MANAGEMENT_API_URL` The management API URL.
14+
- `CONNECTION_STRING` A special connection string to connect to RabbitMQ, see https://docs.particular.net/servicecontrol/transports#rabbitmq for syntax format. NOTE: if your RabbitMQ instance is hosted locally in docker, your connection string will be `host=host.docker.internal;port=<external_docker_port_for_5672>`
15+
- `RABBITMQ_MANAGEMENT_API_URL` The management API URL. NOTE: as above, if hosted locally in docker this will be `http://host.docker.internal:<external_docker_port_for_15672>`
1616
- `RABBITMQ_MANAGEMENT_API_USERNAME` The management API username.
1717
- `RABBITMQ_MANAGEMENT_API_PASSWORD` The management API password.
18+
1. To validate that the broker can be reached, run the following command:
19+
```cmd
20+
docker run --env-file rabbit.env --rm particular/servicecontrol-masstransit-connector:latest health-check
21+
```
1822
1. Update the list of queues you want to monitor by editing the `src/queues.txt` file, also located in the folder that the showcase is cloned to. RabbitMQ is case-sensitive so make sure the names are exact. e.g. `myqueue_error`.
23+
To automate this task you can run the following CLI command:
24+
```cmd
25+
docker run --env-file rabbit.env --rm particular/servicecontrol-masstransit-connector:latest queues-list
26+
```
27+
The command above will output a list of queues, that can be copy-paste into the `src/queues.txt`. **Please ensure you review this list**.
1928
1. Run the following command to start the required containers with the updated environment settings:
20-
2129
```cmd
22-
docker compose -p particular-platform -f docker-compose-base.yml -f compose-rabbitmq-user.yml --env-file rabbit.env --profile infrastructure up
30+
docker compose -p particular-platform -f docker-compose-base.yml -f compose-rabbitmq-user.yml --env-file rabbit.env --profile infrastructure up -d
2331
```
2432

25-
- The containers should all show a status of `Healthy`
33+
ServiceControl should show a status of `Healthy`.
2634

27-
1. Verify that the setup was correct by navigating to http://localhost:9090/#/configuration/mass-transit-connector.
28-
- All of the configured queues for your system should show here
29-
- For each row in the list of queues: if the queues exist, the status should be green `OK`. If the queues don't exist, i.e. there have never been any errors on that consumer, or if there is an issue connecting to the broker then the status will be red `Not ingesting`.
30-
- If the status is `Not ingesting`, the reason for this can be found in the log entries shown below the queue list.
31-
- Any messages that existed in the error queues should now have been ingested, and will be shown in [Failed Messages](http://localhost:9090/#/failed-messages/all-failed-messages)
35+
![Docker Compose Infrastructure](./compose-infrastructure-up.png "Docker Compose up infrastructure only").
3236

33-
## Troubleshooting
37+
Docker should now show a `particular-platform` container group.
3438

35-
-
36-
-
39+
![Docker running infrastructure](./local-rabbit-docker.png "Docker running infrastructure")
40+
41+
1. Verify that the setup was correct by navigating to http://localhost:9090/#/configuration/mass-transit-connector.
42+
- All of the configured queues for your system should show here.
43+
- For each row in the list of queues: if the queues exist, the status should be green. If the queues don't exist, i.e. there have never been any errors on that consumer, or if there is an issue connecting to the broker then the status will be red.
44+
- If the status is red, the reason for this can be found in the log entries shown below the queue list.
45+
- Any messages that existed in the error queues should now have been ingested, and will be shown in [Failed Messages](http://localhost:9090/#/failed-messages/all-failed-messages).

src/frontend/src/components/guideline/Azure.vue

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/frontend/src/components/guideline/RabbitMq.vue

Whitespace-only changes.

0 commit comments

Comments
 (0)