remove redis-cli dependency

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
This commit is contained in:
Sarthak Sharma 2022-12-13 00:08:49 +05:30
parent bb43f1de4a
commit 6976e06df2
11 changed files with 71 additions and 66 deletions

View File

@ -43,11 +43,6 @@ jobs:
quickstart_language: [go, csharp, javascript, python, java]
quickstart_variant: [http, sdk]
steps:
- name: Setup Redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: '6'
auto-start: false
- name: Install docker - MacOS
if: matrix.os == 'macos-10.15'
uses: docker-practice/actions-setup-docker@v1

View File

@ -14,16 +14,17 @@ This quickstart includes one service:
### Prerequisite
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -56,7 +57,7 @@ dapr run --app-id order-processor-http --components-path ../../../components/ --
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -64,7 +65,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -12,16 +12,17 @@ This quickstart includes one service:
### Prerequisite
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -54,7 +55,7 @@ dapr run --app-id order-processor-http --components-path ../../../components/ --
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -62,7 +63,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -13,16 +13,18 @@ This quickstart includes one service:
## Add configuration items to the config store
### Prerequisite
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -57,7 +59,7 @@ dapr run --app-id order-processor --app-port 6001 --components-path ../../../com
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -65,7 +67,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -12,16 +12,17 @@ This quickstart includes one service:
### Prerequisite
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -54,7 +55,7 @@ dapr run --app-id order-processor --app-port 6001 --components-path ../../../com
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -62,7 +63,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -17,19 +17,20 @@ This quickstart includes one service:
- [Microsoft JDK 11](https://docs.microsoft.com/en-us/java/openjdk/download#openjdk-11)
- [Oracle JDK 11](https://www.oracle.com/technetwork/java/javase/downloads/index.html#JDK11)
- [OpenJDK 11](https://jdk.java.net/11/)
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
## Add configuration items to the config store
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -77,7 +78,7 @@ dapr run --app-id order-processor --app-port 6001 --components-path ../../../com
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -85,7 +86,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -15,19 +15,20 @@ This quickstart includes one service:
- [Microsoft JDK 11](https://docs.microsoft.com/en-us/java/openjdk/download#openjdk-11)
- [Oracle JDK 11](https://www.oracle.com/technetwork/java/javase/downloads/index.html#JDK11)
- [OpenJDK 11](https://jdk.java.net/11/)
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
## Add configuration items to the config store
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -74,7 +75,7 @@ dapr run --app-id order-processor --components-path ../../../components -- java
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -82,7 +83,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -14,16 +14,17 @@ This quickstart includes one service:
### Prerequisite
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -68,7 +69,7 @@ dapr run --app-id order-processor --components-path ../../../components/ --app-p
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -76,7 +77,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -12,16 +12,17 @@ This quickstart includes one service:
### Prerequisite
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -65,7 +66,7 @@ dapr run --app-id order-processor --components-path ../../../components/ --app-p
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -73,7 +74,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -14,20 +14,20 @@ This quickstart includes one service:
### Prerequisite
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
## Run Python service with Dapr
1. Open a new terminal window and navigate to `order-processor` directory:
@ -68,7 +68,7 @@ dapr run --app-id order-processor --components-path ../../../components/ --app-p
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -76,7 +76,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->

View File

@ -12,16 +12,17 @@ This quickstart includes one service:
### Prerequisite
- Locally running redis instance - a redis instance is automatically created as a docker container when you run `dapr init`
- Install Redis CLI - [Getting started with Redis | Redis](https://redis.io/docs/getting-started/). `redis-cli` is installed as part of redis setup
- Open a new terminal and set values for config items `orderId1` and `orderId2` using `redis-cli`
- Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init`
- Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below
<!-- STEP
name: Add configuration items
expected_stdout_lines:
- 'OK'
-->
```bash
redis-cli -n 0 MSET orderId1 "101" orderId2 "102"
docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102"
```
<!-- END_STEP -->
@ -65,7 +66,7 @@ dapr run --app-id order-processor --components-path ../../../components/ --app-p
## (Optional) Update value of config items
1. Keep the `order-processor` app running and open a separate terminal
2. Change the values of `orderId1` and `orderId2` using `redis-cli`
2. Change the values of `orderId1` and `orderId2` using the command below
3. `order-processor` app gets the updated values of config items
<!-- STEP
@ -73,7 +74,7 @@ name: Update config items
-->
```bash
redis-cli -n 0 MSET orderId1 "103" orderId2 "104"
docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104"
```
<!--END_STEP -->