From 421688abbbd3959f41d69d95dd9adb48989d94b7 Mon Sep 17 00:00:00 2001 From: Tanya S <120410716+stubbsta@users.noreply.github.com> Date: Fri, 23 Feb 2024 10:48:02 +0200 Subject: [PATCH] Add foundry to waku-simulator (#21) * added foundry image to docker-compose and run_anvil script * removed run_anvil script and moved the command to the docker-compose file * formatted arguments for anvil command to use '=' * using specific foundry image and reformatted command arguments, previous didn't work --- docker-compose.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 74f061f..5f7ce25 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,19 @@ networks: services: + foundry: + image: ghcr.io/foundry-rs/foundry:nightly-9b73e06e1fe376738b92ae081107620291d50188 + labels: + com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}' + command: > + "anvil + --port=8540 + --chain-id=1337 + --block-time=12 + --accounts=1" + networks: + - simulation + bootstrap: image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest} restart: on-failure @@ -43,6 +56,7 @@ services: - ./run_nwaku.sh:/opt/run_nwaku.sh:Z depends_on: - bootstrap + - foundry networks: - simulation