Skip to content

Commit 6e82513

Browse files
committed
format
Signed-off-by: Jianguo Ma <[email protected]>
1 parent 370e484 commit 6e82513

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

articles/aks/howto-deploy-java-liberty-app.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ If you navigated away from the **Deployment is in progress** page, the following
8686
* `appDeploymentTemplateYaml` if you select **No** to **Deploy an application?** when deploying the Marketplace offer; or `appDeploymentYaml` if you select **yes** to **Deploy an application?**.
8787

8888
### [Bash](#tab/in-bash)
89-
Paste the value of `appDeploymentTemplateYaml` or `appDeploymentYaml` into a Bash shell, append `| grep secretName`, and execute. This command will output the Ingress TLS secret name, such as `- secretName: secret785e2c`. Save aside the value for `secretName` from the output.
89+
Paste the value of `appDeploymentTemplateYaml` or `appDeploymentYaml` into a Bash shell, append `| grep secretName`, and execute. This command will output the Ingress TLS secret name, such as `- secretName: secret785e2c`. Save aside the value for `secretName` from the output.
9090

9191
### [PowerShell](#tab/in-powershell)
92-
Paste the quoted string in `appDeploymentTemplateYaml` or `appDeploymentYaml` into a PowerShell, append `| ForEach-Object { [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($_)) } | Select-String "secretName"`, and execute. This command will output the Ingress TLS secret name, such as `- secretName: secret785e2c`. Save aside the value for `secretName` from the output.
92+
Paste the quoted string in `appDeploymentTemplateYaml` or `appDeploymentYaml` into a PowerShell, append `| ForEach-Object { [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($_)) } | Select-String "secretName"`, and execute. This command will output the Ingress TLS secret name, such as `- secretName: secret785e2c`. Save aside the value for `secretName` from the output.
9393

9494
---
9595

@@ -234,23 +234,23 @@ You can now use the following steps to test the Docker image locally before depl
234234
1. Run the image using the following command. Note we're using the environment variables defined previously.
235235

236236
### [Bash](#tab/in-bash)
237-
```bash
238-
docker run -it --rm -p 9080:9080 \
239-
-e DB_SERVER_NAME=${DB_SERVER_NAME} \
240-
-e DB_NAME=${DB_NAME} \
241-
-e DB_USER=${DB_USER} \
242-
-e DB_PASSWORD=${DB_PASSWORD} \
243-
javaee-cafe:v1
237+
```bash
238+
docker run -it --rm -p 9080:9080 \
239+
-e DB_SERVER_NAME=${DB_SERVER_NAME} \
240+
-e DB_NAME=${DB_NAME} \
241+
-e DB_USER=${DB_USER} \
242+
-e DB_PASSWORD=${DB_PASSWORD} \
243+
javaee-cafe:v1
244244
```
245245
### [PowerShell](#tab/in-powershell)
246-
```powershell
247-
docker run -it --rm -p 9080:9080 `
248-
-e DB_SERVER_NAME=${Env:DB_SERVER_NAME} `
249-
-e DB_NAME=${Env:DB_NAME} `
250-
-e DB_USER=${Env:DB_USER} `
251-
-e DB_PASSWORD=${Env:DB_PASSWORD} `
252-
javaee-cafe:v1
253-
```
246+
```powershell
247+
docker run -it --rm -p 9080:9080 `
248+
-e DB_SERVER_NAME=${Env:DB_SERVER_NAME} `
249+
-e DB_NAME=${Env:DB_NAME} `
250+
-e DB_USER=${Env:DB_USER} `
251+
-e DB_PASSWORD=${Env:DB_PASSWORD} `
252+
javaee-cafe:v1
253+
```
254254
---
255255

256256
1. Once the container starts, go to `http://localhost:9080/` in your browser to access the application.
@@ -330,13 +330,13 @@ The following steps deploy and test the application.
330330

331331
### [Bash](#tab/in-bash)
332332
```bash
333-
export APP_URL=https://$(kubectl get ingress | grep javaee-cafe-cluster-agic-ingress | cut -d " " -f14)/
334-
echo $APP_URL
333+
export APP_URL=https://$(kubectl get ingress | grep javaee-cafe-cluster-agic-ingress | cut -d " " -f14)/
334+
echo $APP_URL
335335
```
336336
### [PowerShell](#tab/in-powershell)
337337
```powershell
338-
$APP_URL = "https://$(kubectl get ingress | Select-String 'javaee-cafe-cluster-agic-ingress' | ForEach-Object { $_.Line.Split(' ')[13] })/"
339-
$APP_URL
338+
$APP_URL = "https://$(kubectl get ingress | Select-String 'javaee-cafe-cluster-agic-ingress' | ForEach-Object { $_.Line.Split(' ')[13] })/"
339+
$APP_URL
340340
```
341341
---
342342

0 commit comments

Comments
 (0)