Skip to content

Commit 70a6a33

Browse files
authored
Merge pull request #2 from arushi09-hub/readme-fixes
README: Small content fixes in readme, resource limits & requests added for deployment
2 parents ec99363 + 2ed3b4a commit 70a6a33

File tree

2 files changed

+12
-54
lines changed

2 files changed

+12
-54
lines changed

README.md

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# getting-started-nodejs
22

3-
[![wercker status](https://app.wercker.com/status/7b1a402dd00d57fc9abddf9eb5161675/s "wercker status")](https://app.wercker.com/project/bykey/7b1a402dd00d57fc9abddf9eb5161675)
4-
ample application in Javascript on NodeJS for Wercker
5-
63
This application uses the `node` container obtained from the [Docker Hub](https://hub.docker.com/_/node/)
74

85
## Setup
@@ -23,21 +20,6 @@ Now point your browser at `http://localhost:8080` to see:
2320
{"cities":["Amsterdam","Berlin","New York","San Francisco","Tokyo"]}
2421
```
2522

26-
The second, and more useful, way is to use the `wercker dev` command to launch the binary within a Docker container, using the base image defined in the `box/id` property at the top of the `wercker.yml`, like so:
27-
```
28-
wercker dev --expose-ports
29-
```
30-
The `dev` target inside `wercker.yml` uses the `internal/watch` step to dynamically reload the runtime container when sourcefile changes are detected, which allows you to quickly test changes without having to kill/rebuild/relaunch the container. For instance, add another city to the array on `app.js:3' like so:
31-
32-
```
33-
var cities = {"cities":["Amsterdam","Berlin","New York","San Francisco","Tokyo","London"]}
34-
```
35-
36-
and then refresh your browser pointing to `http://localhost:8080` to see:
37-
```
38-
{"cities":["Amsterdam","Berlin","New York","San Francisco","Tokyo","London"]}}
39-
```
40-
4123
## Getting started with deploying application through Devtron
4224

4325
Lets see how to deploy a custom nodejs app through Devtron.
@@ -61,6 +43,18 @@ ContainerPort :
6143
```
6244
`8080` is the port number on which my nodejs application is running.
6345

46+
Set the resource limits & requests as given below -
47+
48+
```
49+
resources:
50+
limits:
51+
cpu: "0.5"
52+
memory: 50Mi
53+
requests:
54+
cpu: "0.1"
55+
memory: 10Mi
56+
```
57+
6458
Now, select the serviceType, keep it as `LoadBalancer`.
6559

6660
```
@@ -92,9 +86,4 @@ Use this URL on your browser and you can get the output as.
9286
Find out a detailed documentation about the configurations from here - https://docs.devtron.ai/devtron/user-guide/creating-application
9387

9488
---
95-
Sign up for Wercker: http://www.wercker.com
96-
97-
Learn more at: http://devcenter.wercker.com
98-
17
99-
18
10089

wercker.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)