@@ -184,11 +184,13 @@ echo "Starting core infrastructure services..."
184
184
docker compose up -d chain ipfs postgres graph-node
185
185
# Wait for graph-node to be healthy
186
186
echo " 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'
187
188
interruptible_wait 300 ' docker ps | grep graph-node | grep -q healthy' " Waiting for graph-node to be healthy"
188
189
189
190
echo " Deploying contract services..."
190
191
docker compose up -d graph-contracts
191
192
# 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'
192
194
interruptible_wait 300 ' docker ps -a | grep graph-contracts | grep -q "Exited (0)"' " Waiting for contracts to be deployed"
193
195
194
196
# 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' "
350
352
351
353
# Wait for indexer to sync with chain before starting gateway
352
354
echo " Checking chain and indexer synchronization..."
353
- sleep 10 # Give indexer time to process initial blocks
354
355
355
356
echo " Building gateway image..."
356
357
source 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
358
364
359
365
echo " Running gateway container..."
360
366
# Verify required files exist before starting gateway
0 commit comments