From 1fe013857860b7c6a2a01c6e9b12ec7cbad4d799 Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Fri, 31 Mar 2023 13:29:24 +0530 Subject: [PATCH] Add a healthcheck to lighthouse bootnode to avoid failing eth txs --- app/data/compose/docker-compose-fixturenet-eth.yml | 6 ++++++ app/data/compose/docker-compose-fixturenet-optimism.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/app/data/compose/docker-compose-fixturenet-eth.yml b/app/data/compose/docker-compose-fixturenet-eth.yml index bd19c753..c51550cc 100644 --- a/app/data/compose/docker-compose-fixturenet-eth.yml +++ b/app/data/compose/docker-compose-fixturenet-eth.yml @@ -58,6 +58,12 @@ services: environment: RUN_BOOTNODE: "true" image: cerc/fixturenet-eth-lighthouse:local + healthcheck: + test: ["CMD", "/scripts/status-internal.sh"] + interval: 10s + timeout: 100s + retries: 3 + start_period: 15s fixturenet-eth-lighthouse-1: hostname: fixturenet-eth-lighthouse-1 diff --git a/app/data/compose/docker-compose-fixturenet-optimism.yml b/app/data/compose/docker-compose-fixturenet-optimism.yml index 6e49056d..4d17e5f2 100644 --- a/app/data/compose/docker-compose-fixturenet-optimism.yml +++ b/app/data/compose/docker-compose-fixturenet-optimism.yml @@ -6,6 +6,8 @@ services: depends_on: fixturenet-eth-geth-1: condition: service_healthy + fixturenet-eth-bootnode-lighthouse: + condition: service_healthy image: cerc/optimism-contracts:local environment: CHAIN_ID: 1212