Skip to content

Commit f2c250f

Browse files
committed
add label
1 parent f7e8ac6 commit f2c250f

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

tutorials/basic-nodejs-application-create/basic-nodejs-application-create.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,36 @@ primary_tag: software-product>sap-btp\, kyma-runtime
2323
You can use the application generator tool [Node.js Express generator](https://expressjs.com/en/starter/generator.html) to quickly create a Node.js application skeleton.
2424

2525
Before that, create a new directory for your project:
26-
```
26+
```shell
2727
mkdir multitenancy-kyma-tutorial
2828
```
2929

3030
Under the `multitenancy-kyma-tutorial` directory, create your own Node.js Application.
3131

3232
**Option 1**: Run the application generator to create application skeleton with single one `npx` command (available in Node.js 8.2.0):
33-
```
33+
```shell
3434
npx express-generator --view=jade kyma-multitenant-node
3535
```
3636

3737
**Option 2**: Run the application generator to create application skeleton with command `npm` and `express`, by this way, packages will be saved locally as well.
3838

3939
Install the tool:
4040

41-
```
41+
```shell
4242
npm install -g express-generator
4343
```
4444

4545
> Package `express` is installed together.
4646
4747
Verify if you have successfully installed the tool:
4848

49-
```
49+
```shell
5050
express --version
5151
```
5252

5353
Create an application skeleton:
5454

55-
```
55+
```shell
5656
express --view=jade kyma-multitenant-node
5757
```
5858

@@ -139,7 +139,7 @@ router.get("/", function(req, res, next) {
139139
[ACCORDION-BEGIN [Step 3: ](Project Repository)]
140140

141141

142-
You can find the final Node.js project from repository: [here](https://github.com/SAP-samples/btp-kyma-runtime-multitenancy-tutorial/tree/main/Mission:%20Develop%20a%20Node.js%20Application%20in%20the%20SAP%20BTP%20Kyma%20Runtime).
142+
You can find the final Node.js project from [here](https://github.com/SAP-samples/btp-kyma-runtime-multitenancy-tutorial/tree/main/Mission:%20Develop%20a%20Node.js%20Application%20in%20the%20SAP%20BTP%20Kyma%20Runtime).
143143

144144

145145

tutorials/deploy-nodejs-application-kyma/deploy-nodejs-application-kyma.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Install command-line tool `pack`: [Install Pack](https://buildpacks.io/docs/tool
5555

5656
For example (macOS):
5757

58-
```
58+
```shell
5959
brew install buildpacks/tap/pack
6060
```
6161

@@ -66,7 +66,7 @@ As you can only create one private repository in a free Docker hub account, Dock
6666

6767
Under the directory `kyma-multitenant-node`, build the image for the approuter app from source, for example:
6868

69-
```
69+
```shell
7070
pack build multitenant-kyma-backend --builder paketobuildpacks/builder:full
7171
docker tag multitenant-kyma-backend <docker-hub-account>/multitenant-kyma-backend:v1
7272
```
@@ -80,13 +80,13 @@ docker tag multitenant-kyma-backend <docker-hub-account>/multitenant-kyma-backen
8080

8181
Log in to Docker using this command:
8282

83-
```
83+
```shell
8484
docker login -u <docker-id> -p <password>
8585
```
8686

8787
Push the local image into the Docker Hub:
8888

89-
```
89+
```shell
9090
docker push <docker-hub-account>/multitenant-kyma-backend:v1
9191
```
9292

@@ -100,7 +100,7 @@ docker push <docker-hub-account>/multitenant-kyma-backend:v1
100100

101101
Then you are ready to deploy it into the Kubernetes cluster with Kyma runtime.
102102

103-
Click on the `Link to dashboard` to open the Kyma dashboard.
103+
Select the `Link to dashboard` to open the Kyma dashboard.
104104

105105
![image-20220112154735200](image-20220112154735200.png)
106106

@@ -118,15 +118,15 @@ Create a new namespace through the Kyma dashboard or `kubectl` CLI, for example,
118118

119119
Since the OCI image is stored in your Docker hub, you need to provide the access information to your Kyma cluster that you can pull the images from those repositories:
120120

121-
```
121+
```shell
122122
kubectl -n multitenancy-ns create secret docker-registry registry-secret --docker-server=https://index.docker.io/v1/ --docker-username=<docker-id> --docker-password=<password> --docker-email=<email>
123123
```
124124

125125
> Replace the placeholder values according to your account.
126126
127127
Therefore, all deployment files contain an `imagePullSecret` entry, which should be set to `registry-secret`.
128128

129-
```
129+
```yaml
130130
imagePullSecrets:
131131
- name: registry-secret # replace with your own registry secret
132132
```
@@ -314,7 +314,7 @@ spec:
314314

315315
Deploy the Node.js application by executing this command under the root directory `multitenancy-kyma-tutorial`:
316316

317-
```
317+
```shell
318318
kubectl -n multitenancy-ns apply -f k8s-deployment-backend.yaml
319319
```
320320

0 commit comments

Comments
 (0)