From 146b71214ef84ea745275cb6cee6ef9457cabb97 Mon Sep 17 00:00:00 2001 From: Alejandro Cabeza Romero Date: Thu, 13 Jun 2024 23:37:08 +0200 Subject: [PATCH] Various fixes --- deploy_rln_contract.sh | 0 docker-compose.yml | 5 ++++- inject_traffic.sh | 5 +++++ run_nwaku.sh | 6 +++++- 4 files changed, 14 insertions(+), 2 deletions(-) mode change 100644 => 100755 deploy_rln_contract.sh create mode 100755 inject_traffic.sh diff --git a/deploy_rln_contract.sh b/deploy_rln_contract.sh old mode 100644 new mode 100755 diff --git a/docker-compose.yml b/docker-compose.yml index 075dffa..1c7f72c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,7 +44,7 @@ services: command: - '/opt/deploy_rln_contract.sh' volumes: - - ./deploy_rln_contract.sh:/opt/deploy_rln_contract.sh + - ./deploy_rln_contract.sh:/opt/deploy_rln_contract.sh:Z depends_on: - foundry networks: @@ -152,6 +152,7 @@ services: - /var/run:/var/run:rw - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro + - /dev:/dev depends_on: - redis networks: @@ -203,6 +204,8 @@ services: - api networks: - simulation + ports: + - 0.0.0.0:3000:3000 ingestion: image: web3labs/epirus-free-ingestion:latest diff --git a/inject_traffic.sh b/inject_traffic.sh new file mode 100755 index 0000000..871d423 --- /dev/null +++ b/inject_traffic.sh @@ -0,0 +1,5 @@ +docker run -it --network waku-simulator_simulation alrevuelta/rest-traffic:d936446 \ +--delay-seconds=${TRAFFIC_DELAY_SECONDS:-10} \ +--msg-size-kbytes=${MSG_SIZE_KBYTES:-5} \ +--pubsub-topic=/waku/2/rs/66/0 \ +--multiple-nodes="http://waku-simulator_nwaku_[1..${NUM_NWAKU_NODES:-5}]:8645" diff --git a/run_nwaku.sh b/run_nwaku.sh index 3b2eb5a..ee799eb 100755 --- a/run_nwaku.sh +++ b/run_nwaku.sh @@ -81,6 +81,7 @@ get_private_key(){ current_index=1 for key in $private_keys do + INDEX=`echo $INDEX | sed -n "1p" | awk '{print $1}'` if [ $current_index -eq $INDEX ]; then pk=$key echo $key @@ -114,6 +115,9 @@ else --execute fi +echo $RLN_CREDENTIAL_PATH +ls -la / +ls -la $RLN_CREDENTIAL_PATH echo "I am a nwaku node" RETRIES=${RETRIES:=10} @@ -158,4 +162,4 @@ exec /usr/bin/wakunode\ --discv5-bootstrap-node=${BOOTSTRAP_ENR}\ --nat=extip:${IP}\ --pubsub-topic=/waku/2/rs/66/0\ - --cluster-id=66 \ No newline at end of file + --cluster-id=66