Skip to content

Commit e3453cf

Browse files
fix: ensure the examples use the default dapr port (#342) (#343)
(cherry picked from commit 15642e0) Signed-off-by: Mike Nguyen <hey@mike.ee> Co-authored-by: Mike Nguyen <hey@mike.ee>
1 parent bfcdf9b commit e3453cf

6 files changed

Lines changed: 22 additions & 8 deletions

File tree

examples/src/client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ timeout_seconds: 30
3333
-->
3434

3535
```bash
36-
dapr run --app-id=rustapp --dapr-grpc-port 3500 --resources-path ./resources -- cargo run --example client
36+
dapr run --app-id=rustapp --dapr-grpc-port 50001 --resources-path ./resources -- cargo run --example client
3737
```
3838

3939
<!-- END_STEP -->

examples/src/configuration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ timeout_seconds: 30
5353
-->
5454

5555
```bash
56-
dapr run --app-id=rustapp --resources-path ../components --dapr-grpc-port 3500 -- cargo run --example configuration
56+
dapr run --app-id=rustapp --resources-path ../components --dapr-grpc-port 50001 -- cargo run --example configuration
5757
```
5858

5959
<!-- END_STEP -->

examples/src/conversation-alpha1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ timeout_seconds: 30
4040
-->
4141

4242
```bash
43-
dapr run --app-id=conversation --resources-path ./config --dapr-grpc-port 3500 -- cargo run --example conversation-alpha1
43+
dapr run --app-id=conversation --resources-path ./config --dapr-grpc-port 50001 -- cargo run --example conversation-alpha1
4444
```
4545

4646
<!-- END_STEP -->

examples/src/conversation-alpha2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ timeout_seconds: 30
4040
-->
4141

4242
```bash
43-
dapr run --app-id=conversation --resources-path ./config --dapr-grpc-port 3500 -- cargo run --example conversation-alpha2
43+
dapr run --app-id=conversation --resources-path ./config --dapr-grpc-port 50001 -- cargo run --example conversation-alpha2
4444
```
4545

4646
<!-- END_STEP -->

examples/src/query_state/README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,21 @@ timeout_seconds: 5
4545
-->
4646
```bash
4747
curl -X POST -H "Content-Type: application/json" http://localhost:3500/v1.0/state/statestore -d @./statestore/dataset.json
48-
``````
48+
```
49+
<!-- END_STEP -->
50+
51+
Stop the temporary sidecar after loading the test data so the query examples
52+
below can use Dapr's standard gRPC port.
53+
54+
<!-- STEP
55+
name: Stop populate sidecar
56+
background: false
57+
sleep: 2
58+
timeout_seconds: 10
59+
-->
60+
```bash
61+
dapr stop --app-id demo
62+
```
4963
<!-- END_STEP -->
5064

5165
1. To run the example we need to first build the examples using the following command:
@@ -92,7 +106,7 @@ sleep: 15
92106
timeout_seconds: 30
93107
-->
94108
```bash
95-
dapr run --app-id=rustapp --dapr-grpc-port 3501 --resources-path statestore/ -- cargo run --example query-state-1
109+
dapr run --app-id=rustapp --dapr-grpc-port 50001 --resources-path statestore/ -- cargo run --example query-state-1
96110
```
97111
<!-- END_STEP -->
98112

@@ -126,7 +140,7 @@ sleep: 15
126140
timeout_seconds: 30
127141
-->
128142
```bash
129-
dapr run --app-id=rustapp --dapr-grpc-port 3501 --resources-path statestore/ -- cargo run --example query-state-2
143+
dapr run --app-id=rustapp --dapr-grpc-port 50001 --resources-path statestore/ -- cargo run --example query-state-2
130144
```
131145
<!-- END_STEP -->
132146

examples/src/secrets-bulk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ timeout_seconds: 30
3434
-->
3535

3636
```bash
37-
dapr run --app-id=rustapp --dapr-grpc-port 3500 --resources-path ./resources/ -- cargo run --example secrets-bulk
37+
dapr run --app-id=rustapp --dapr-grpc-port 50001 --resources-path ./resources/ -- cargo run --example secrets-bulk
3838
```
3939

4040
<!-- END_STEP -->

0 commit comments

Comments
 (0)