@@ -184,11 +184,13 @@ echo "Starting core infrastructure services..."
184184docker compose up -d chain ipfs postgres graph-node
185185# Wait for graph-node to be healthy
186186echo " Waiting for graph-node to be healthy..."
187+ # timeout 300 bash -c 'until docker ps | grep graph-node | grep -q healthy; do sleep 5; done'
187188interruptible_wait 300 ' docker ps | grep graph-node | grep -q healthy' " Waiting for graph-node to be healthy"
188189
189190echo " Deploying contract services..."
190191docker compose up -d graph-contracts
191192# Wait for contracts to be deployed
193+ # timeout 300 bash -c 'until docker ps -a | grep graph-contracts | grep -q "Exited (0)"; do sleep 5; done'
192194interruptible_wait 300 ' docker ps -a | grep graph-contracts | grep -q "Exited (0)"' " Waiting for contracts to be deployed"
193195
194196# Verify the contracts have code using horizon structure
@@ -350,11 +352,15 @@ interruptible_wait 60 'curl -f http://localhost:7300/metrics > /dev/null 2>&1' "
350352
351353# Wait for indexer to sync with chain before starting gateway
352354echo " Checking chain and indexer synchronization..."
353- sleep 10 # Give indexer time to process initial blocks
354355
355356echo " Building gateway image..."
356357source local-network/.env
357- docker compose -f local-network/docker-compose.yaml build gateway
358+ # Build the gateway image with the commit
359+ docker build \
360+ --build-arg GATEWAY_COMMIT=" $GATEWAY_COMMIT " \
361+ -t local-gateway:latest \
362+ local-network/gateway
363+ # docker build -t local-gateway:latest ./local-network/gateway
358364
359365echo " Running gateway container..."
360366# Verify required files exist before starting gateway
0 commit comments