Skip to content

Commit

Permalink
Impose resource constraints on demos
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Moore <[email protected]>
  • Loading branch information
couryrr-afs authored and drmrd committed Dec 6, 2023
1 parent 99bf3e4 commit 2f2b0ae
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
TAG=0.0.4
TAG=0.0.7
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ The use cases supported by the three demos are summarized in conceptual block di
- 🚨 ISO 15118 DC Charging ⚡: `curl https://raw.githubusercontent.com/everest/everest-demo/main/demo-iso15118-2-dc.sh | bash`
- 🚨 Two EVSE Charging ⚡: `curl https://raw.githubusercontent.com/everest/everest-demo/main/demo-two-evse.sh | bash`

#### Demo Notes
EVerest is designed with embedded applications in mind. To illustrate this, we've imposed maximum CPU usage and RAM constraints of 100% (1 core) and 1024MB, respectively, in each of the demos. Even on modest desktop hardware, these constraints should only result in slightly longer boot times.
The resource constraints for a demo can be changed in its Docker Compose file (the file downloaded in "STEP 1" below).

### STEP 2: Interact with the demo
- Open the `nodered` flows to understand the module flows at http://127.0.0.1:1880
- Open the demo UI at http://127.0.0.1:1880/ui
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.admin-panel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024mb
depends_on:
- mqtt-server
environment:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.iso15118-dc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ services:

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024mb
depends_on:
- mqtt-server
environment:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.two-evse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024mb
depends_on:
- mqtt-server
environment:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024mb
depends_on:
- mqtt-server
environment:
Expand Down
2 changes: 1 addition & 1 deletion nodered/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ RUN npm install node-red-contrib-ui-actions
RUN npm install node-red-node-ui-table
RUN npm install node-red-contrib-ui-level

COPY config /config
COPY --chown=node-red:root config /config

LABEL org.opencontainers.image.source=https://github.com/everest/everest-demo

0 comments on commit 2f2b0ae

Please sign in to comment.