Skip to content

Commit 144008b

Browse files
committed
test(setup-test-network): make gateway local-network vars available
1 parent ea3419d commit 144008b

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
@@ -233,15 +233,21 @@ timeout 30 bash -c 'until docker ps | grep indexer | grep -q healthy; do sleep 5
233233
timeout 30 bash -c 'until docker ps | grep tap-agent | grep -q healthy; do sleep 5; done'
234234

235235
echo "Building gateway image..."
236+
source local-network/.env
236237
docker build -t local-gateway:latest ./local-network/gateway
237238

238239
echo "Running gateway container..."
239240
docker run -d --name gateway \
240241
--network local-network_default \
241242
-p 7700:7700 \
242-
-v $(pwd)/local-network/.env:/opt/.env:ro \
243-
-v $(pwd)/local-network/contracts.json:/opt/contracts.json:ro \
243+
-v "$(pwd)/local-network/contracts.json":/opt/contracts.json:ro \
244244
-e RUST_LOG=info,graph_gateway=trace \
245+
-e ACCOUNT0_SECRET="$ACCOUNT0_SECRET" \
246+
-e ACCOUNT0_ADDRESS="$ACCOUNT0_ADDRESS" \
247+
-e GATEWAY_API_KEY="$GATEWAY_API_KEY" \
248+
-e GRAPH_NODE_GRAPHQL="$GRAPH_NODE_GRAPHQL" \
249+
-e REDPANDA_KAFKA="$REDPANDA_KAFKA" \
250+
-e INDEXER_SERVICE="$INDEXER_SERVICE" \
245251
--restart on-failure:3 \
246252
local-gateway:latest
247253

0 commit comments

Comments
 (0)