Skip to content

Commit ecc19b7

Browse files
committed
test: use our custom local-network
test: pass GATEWAY_COMMIT when building container test: fix gateway path
1 parent 853fb21 commit ecc19b7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup-test-network.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,13 @@ echo "Starting core infrastructure services..."
184184
docker compose up -d chain ipfs postgres graph-node
185185
# Wait for graph-node to be healthy
186186
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'
187188
interruptible_wait 300 'docker ps | grep graph-node | grep -q healthy' "Waiting for graph-node to be healthy"
188189

189190
echo "Deploying contract services..."
190191
docker 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'
192194
interruptible_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
352354
echo "Checking chain and indexer synchronization..."
353-
sleep 10 # Give indexer time to process initial blocks
354355

355356
echo "Building gateway image..."
356357
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
358364

359365
echo "Running gateway container..."
360366
# Verify required files exist before starting gateway

0 commit comments

Comments
 (0)