Skip to content

Commit

Permalink
staterecovery: try to make local stack more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnovais committed Feb 7, 2025
1 parent d6a5cfe commit 1702896
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,22 @@ start-env: L1_CONTRACT_VERSION:=6
start-env: SKIP_CONTRACTS_DEPLOYMENT:=false
start-env: LINEA_PROTOCOL_CONTRACTS_ONLY:=false
start-env:
if [ "$(CLEAN_PREVIOUS_ENV)" = "true" ]; then \
make clean-environment; \
@if [ "$(CLEAN_PREVIOUS_ENV)" = "true" ]; then \
$(MAKE) clean-environment; \
else \
echo "Starting stack reusing previous state"; \
fi; \
mkdir -p tmp/local; \
L1_GENESIS_TIME=$(get_future_time) COMPOSE_PROFILES=$(COMPOSE_PROFILES) docker compose -f $(COMPOSE_FILE) up -d; \
while [ "$$(docker compose -f $(COMPOSE_FILE) ps -q l1-el-node | xargs docker inspect -f '{{.State.Health.Status}}')" != "healthy" ] || \
[ "$$(docker compose -f $(COMPOSE_FILE) ps -q sequencer | xargs docker inspect -f '{{.State.Health.Status}}')" != "healthy" ]; do \
sleep 2; \
echo "Checking health status of l1-el-node and sequencer..."; \
done
if [ "$(SKIP_CONTRACTS_DEPLOYMENT)" = "true" ]; then \
echo "Skipping contracts deployment"; \
else \
make deploy-contracts L1_CONTRACT_VERSION=$(L1_CONTRACT_VERSION) LINEA_PROTOCOL_CONTRACTS_ONLY=$(LINEA_PROTOCOL_CONTRACTS_ONLY); \
$(MAKE) deploy-contracts L1_CONTRACT_VERSION=$(L1_CONTRACT_VERSION) LINEA_PROTOCOL_CONTRACTS_ONLY=$(LINEA_PROTOCOL_CONTRACTS_ONLY); \
fi

start-l1:
Expand Down
4 changes: 2 additions & 2 deletions docker/compose-spec-l2-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ services:
ports:
- "4001:4001"
env_file: "./config/blobscan/env"
restart: no
restart: always
# healthcheck:
# test: [ "CMD", "curl", "-f", "http://localhost:4001/healthcheck" ]
# disable: true
Expand All @@ -543,7 +543,7 @@ services:
blobscan-indexer:
container_name: blobscan-indexer
hostname: blobscan-indexer
image: blossomlabs/blobscan-indexer:0.2.2
image: blossomlabs/blobscan-indexer:0.2.1
platform: linux/amd64 # only linux available
profiles: [ "staterecovery" ]
env_file: "./config/blobscan/env"
Expand Down

0 comments on commit 1702896

Please sign in to comment.