Skip to content

Commit

Permalink
use docker compose syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sumn2u committed Dec 6, 2023
1 parent 85815cd commit 8e83255
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 38 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ COPY . .
EXPOSE 8080

ENV PORT=8080

CMD ["npm", "run", "measure"]
46 changes: 46 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
version: "3"

services:
app:
build:
context: .
ports:
- "8080:8080"
environment:
PORT: 8080

volumes:
node_modules:

# services:
# Small_load_Container:
# image: node:20-alpine
# # working_dir: /usr/src/app
# ports:
# - 9000:8080
# setup-commands:
# - whoami

# High_load_Container:
# image: node:20-alpine
# # working_dir: /usr/src/app
# ports:
# - 9001:8080
# setup-commands:
# - whoami

# flow:
# - name: Load 1
# container: Small_load_Container
# commands:
# - type: console
# command: node experiments/example.js -n 1
# detach: true
# note: Running Example Code with 1 detached
# - name: Load 100
# container: High_load_Container
# commands:
# - type: console
# command: node experiments/example.js -n 100
# note: Running Example Code with 100 detached
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"memory usage"
],
"scripts": {
"test": "mocha test/*.test.js"
"test": "mocha test/*.test.js",
"measure": "node experiments/example.js"
},
"author": "Suman Kunwar",
"license": "MIT",
Expand Down
37 changes: 0 additions & 37 deletions usage_scenario.yml

This file was deleted.

0 comments on commit 8e83255

Please sign in to comment.