Skip to content

Commit 1629231

Browse files
authored
Update btp-app-kyma-deploy-application.md
1 parent 408c27a commit 1629231

1 file changed

Lines changed: 42 additions & 39 deletions

File tree

tutorials/btp-app-kyma-deploy-application/btp-app-kyma-deploy-application.md

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ primary_tag: software-product-function>sap-cloud-application-programming-model
3737
---
3838

3939
[ACCORDION-BEGIN [Step 1: ](Add Authorization and Trust Management service (XSUAA))]
40-
The next step is to add the Authorization and Trust Management service to `values.yaml` to allow user login, authorization, and authentication checks. Open the `chart/values.yaml` file and add the following snippet:
40+
The next step is to add the Authorization and Trust Management service to `values.yaml` to allow user login, authorization, and authentication checks.
41+
42+
Open the `chart/values.yaml` file and add the following snippet:
4143

4244

4345
```YAML[9-17]
@@ -75,9 +77,9 @@ You need to set the environment variable for the container registry.
7577

7678
1. Open a terminal and run the following command:
7779

78-
```
79-
CONTAINER_REGISTRY=<Container Registry>
80-
```
80+
```Shell/Bash
81+
CONTAINER_REGISTRY=<Container Registry>
82+
```
8183

8284
2. Refer to [Configure Container Image](btp-app-#configure-container-image) for details on finding `<Container Registry>`.
8385

@@ -87,16 +89,17 @@ You need to set the environment variable for the container registry.
8789
[ACCORDION-BEGIN [Step 3: ](CAP build)]
8890
1. Execute the following command in your project folder:
8991

90-
```Shell/Bash
91-
cds build --production
92-
```
93-
You should get an output like: `[cds] - build completed in XXX ms`.
92+
```Shell/Bash
93+
cds build --production
94+
```
9495

95-
1. (Optional) Run the following command to remove the test data:
96+
You should get an output like: `[cds] - build completed in XXX ms`.
9697

97-
```
98-
rm -rf gen/db/data
99-
```
98+
2. (Optional) Run the following command to remove the test data:
99+
100+
```Shell/Bash
101+
rm -rf gen/db/data
102+
```
100103

101104
> Although the app will work with the test data, usually test data should be removed before deployment.
102105
@@ -108,35 +111,35 @@ You need to set the environment variable for the container registry.
108111
[ACCORDION-BEGIN [Step 4: ](Build CAP service)]
109112
1. Run the following command:
110113

111-
```Shell/Bash
112-
pack build $CONTAINER_REGISTRY/cpapp-srv --path gen/srv \
113-
--buildpack gcr.io/paketo-buildpacks/nodejs \
114-
--builder paketobuildpacks/builder:base
115-
```
114+
```Shell/Bash
115+
pack build $CONTAINER_REGISTRY/cpapp-srv --path gen/srv \
116+
--buildpack gcr.io/paketo-buildpacks/nodejs \
117+
--builder paketobuildpacks/builder:base
118+
```
116119

117120
2. You should get an output like:
118121

119-
```Shell/Bash
120-
Successfully built image <Container Registry>/cpapp-srv
121-
```
122+
```Shell/Bash
123+
Successfully built image <Container Registry>/cpapp-srv
124+
```
122125

123126
[DONE]
124127
[ACCORDION-END]
125128
---
126129
[ACCORDION-BEGIN [Step 5: ](Build DB deployer)]
127130
1. Run the following command:
128131

129-
```Shell/Bash
130-
pack build $CONTAINER_REGISTRY/cpapp-hana-deployer --path gen/db \
131-
--buildpack gcr.io/paketo-buildpacks/nodejs \
132-
--builder paketobuildpacks/builder:base
133-
```
132+
```Shell/Bash
133+
pack build $CONTAINER_REGISTRY/cpapp-hana-deployer --path gen/db \
134+
--buildpack gcr.io/paketo-buildpacks/nodejs \
135+
--builder paketobuildpacks/builder:base
136+
```
134137

135138
2. You should get an output like:
136139

137-
```Shell/Bash
138-
Successfully built image <Container Registry>/cpapp-hana-deployer
139-
```
140+
```Shell/Bash
141+
Successfully built image <Container Registry>/cpapp-hana-deployer
142+
```
140143

141144
[DONE]
142145
[ACCORDION-END]
@@ -146,26 +149,26 @@ Now that we've build the docker images, let's push them to the container registr
146149

147150
1. Make sure you're logged in to your container registry:
148151

149-
```Shell/Bash
150-
docker login
151-
```
152+
```Shell/Bash
153+
docker login
154+
```
152155

153156
2. Push the images to container registry:
154157

155-
```Shell/Bash
156-
docker push $CONTAINER_REGISTRY/cpapp-srv
157-
docker push $CONTAINER_REGISTRY/cpapp-hana-deployer
158-
```
158+
```Shell/Bash
159+
docker push $CONTAINER_REGISTRY/cpapp-srv
160+
docker push $CONTAINER_REGISTRY/cpapp-hana-deployer
161+
```
159162

160163
[DONE]
161164
[ACCORDION-END]
162165
---
163166
[ACCORDION-BEGIN [Step 7: ](Deploy)]
164167
1. Deploy your app:
165168

166-
```Shell/Bash
167-
helm upgrade cpapp ./chart --install
168-
```
169+
```Shell/Bash
170+
helm upgrade cpapp ./chart --install
171+
```
169172

170173
2. Copy the app URL when done and paste it into a new browser window:
171174

@@ -262,7 +265,7 @@ You can check and adjust the settings for [the trusted source IP addresses](http
262265
263266
You can get your clusters outbound IP address with the following command:
264267
265-
```
268+
```Shell/Bash
266269
kubectl run -it --rm --restart=Never --image alpine/curl nat-ip-probe --overrides='{ "apiVersion": "v1", "metadata": {"annotations": { "sidecar.istio.io/inject":"false" } } }' -- curl https://httpbin.org/ip
267270
```
268271

0 commit comments

Comments
 (0)