Initial changes

This commit is contained in:
Gabriel Mermelstein 2023-10-26 15:40:46 +03:00
parent 67ebeef4d7
commit fb9fe22fb4
No known key found for this signature in database
GPG Key ID: 306734DDCE542DCD
2 changed files with 66 additions and 16 deletions

View File

@ -1,5 +1,9 @@
version: "3.7" version: "3.7"
x-traffic-multiple-nodes: &traffic-multiple-nodes >
${TRAFFIC_MULTIPLE_NODES:-http://waku-simulator_nwaku_[1..10]:8545}
x-traffic-message-size-kb: &traffic-message-size-kb ${TRAFFIC_MESSAGE_SIZE_KB:-10}
x-traffic-delay-seconds: &traffic-delay-seconds ${TRAFFIC_DELAY_SECONDS:-15}
networks: networks:
simulation: simulation:
@ -62,15 +66,15 @@ services:
depends_on: depends_on:
- bootstrap - bootstrap
waku-publisher: rest-traffic:
image: alrevuelta/waku-publisher:9fb206c image: python:3.9.18-alpine3.18
entrypoint: sh command: >
- 'opt/run_wakupublisher.sh' python /opt/traffic.py
-mn=${traffic-multiple-nodes}
-s=${traffic-message-size-kb}
-d=${traffic-delay-seconds}
volumes: volumes:
- ./run_wakupublisher.sh:/opt/run_wakupublisher.sh:Z - ./traffic.py:/opt/traffic.py:Z
environment:
MSG_PER_SECOND: 10
MSG_SIZE_KBYTES: 10
networks: networks:
- simulation - simulation

File diff suppressed because one or more lines are too long