mirror of https://github.com/dapr/docs.git
				
				
				
			Improve walk through by using consistent file path + dir (#3459)
Signed-off-by: joshvanl <me@joshvanl.dev> Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
		
							parent
							
								
									5696e3ccdf
								
							
						
					
					
						commit
						a97a5b58b3
					
				|  | @ -16,17 +16,7 @@ In this tutorial, you will create a component definition file to interact with t | |||
| 
 | ||||
| ## Step 1: Create a JSON secret store | ||||
| 
 | ||||
| Dapr supports [many types of secret stores]({{< ref supported-secret-stores >}}), but for this tutorial, create a local JSON file named `mysecrets.json` with the following secret: | ||||
| 
 | ||||
| ```json | ||||
| { | ||||
|    "my-secret" : "I'm Batman" | ||||
| } | ||||
| ``` | ||||
| 
 | ||||
| ## Step 2: Create a secret store Dapr component | ||||
| 
 | ||||
| 1. Create a new directory named `my-components` to hold the new component file: | ||||
| 1. Create a new directory named `my-components` to hold the new secret and component file: | ||||
| 
 | ||||
|    ```bash | ||||
|    mkdir my-components | ||||
|  | @ -38,6 +28,16 @@ Dapr supports [many types of secret stores]({{< ref supported-secret-stores >}}) | |||
|    cd my-components | ||||
|    ``` | ||||
| 
 | ||||
| 1. Dapr supports [many types of secret stores]({{< ref supported-secret-stores >}}), but for this tutorial, create a local JSON file named `mysecrets.json` with the following secret: | ||||
| 
 | ||||
| ```json | ||||
| { | ||||
|    "my-secret" : "I'm Batman" | ||||
| } | ||||
| ``` | ||||
| 
 | ||||
| ## Step 2: Create a secret store Dapr component | ||||
| 
 | ||||
| 1. Create a new file `localSecretStore.yaml` with the following contents: | ||||
| 
 | ||||
|    ```yaml | ||||
|  | @ -51,7 +51,7 @@ Dapr supports [many types of secret stores]({{< ref supported-secret-stores >}}) | |||
|      version: v1 | ||||
|      metadata: | ||||
|      - name: secretsFile | ||||
|        value: <PATH TO SECRETS FILE>/mysecrets.json | ||||
|        value: ./mysecrets.json | ||||
|      - name: nestedSeparator | ||||
|        value: ":" | ||||
|    ``` | ||||
|  | @ -65,7 +65,7 @@ In the above file definition: | |||
| Launch a Dapr sidecar that will listen on port 3500 for a blank application named `myapp`: | ||||
| 
 | ||||
| ```bash | ||||
| dapr run --app-id myapp --dapr-http-port 3500 --resources-path ./my-components | ||||
| dapr run --app-id myapp --dapr-http-port 3500 --resources-path . | ||||
| ``` | ||||
| 
 | ||||
| {{% alert title="Tip" color="primary" %}} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue