File tree Expand file tree Collapse file tree 7 files changed +8
-15
lines changed Expand file tree Collapse file tree 7 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,7 @@ jobs:
218218 echo "Docker image: ${{ env.DOCKER_IMAGE_NAME }}@${{ needs.docker.outputs.docker_image_digest }}"
219219
220220 docker run -d --name router -p 4000:4000 \
221- -e HIVE__SUPERGRAPH__SOURCE="file" \
222- -e HIVE__SUPERGRAPH__PATH="/app/supergraph.graphql" \
221+ -e SUPERGRAPH_FILE_PATH="/app/supergraph.graphql" \
223222 -v ./bench/supergraph.graphql:/app/supergraph.graphql \
224223 ${{ env.DOCKER_IMAGE_NAME }}@${{ needs.docker.outputs.docker_image_digest }}
225224
Original file line number Diff line number Diff line change @@ -130,8 +130,7 @@ jobs:
130130 - name : Run router
131131 run : ./target/release/hive_router & sleep 5
132132 env :
133- HIVE__SUPERGRAPH__SOURCE : file
134- HIVE__SUPERGRAPH__PATH : bench/supergraph.graphql
133+ SUPERGRAPH_FILE_PATH : bench/supergraph.graphql
135134 - name : Run k6 benchmark
136135 run : k6 run bench/k6.js
137136
Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ supergraph:
3535Alternativly, you can use environment variables to configure the router:
3636
3737` ` ` env
38- HIVE__SUPERGRAPH__SOURCE=file
39- HIVE__SUPERGRAPH__PATH=./supergraph.graphql
38+ SUPERGRAPH_FILE_PATH=./supergraph.graphql
4039```
4140
4241Then, run the router:
@@ -58,8 +57,7 @@ The router image is being published to [Docker to GitHub Container Registry]().
5857``` bash
5958docker run \
6059 -p 4000:4000 \
61- -e HIVE__SUPERGRAPH__SOURCE=" file" \
62- -e HIVE__SUPERGRAPH__PATH=" /app/supergraph.graphql" \
60+ -e SUPERGRAPH_FILE_PATH=" /app/supergraph.graphql" \
6361 -v ./my-supergraph.graphql:/app/supergraph.graphql \
6462 ghcr.io/graphql-hive/router:latest
6563```
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "test:federation-all" : " graphql-federation-audit test --run-script=\" ./run-router.sh\" --graphql=\" http://localhost:4000/graphql\" --healthcheck=\" http://localhost:4000/health\" --junit" ,
77 "test:federation-single" : " graphql-federation-audit test-suite --run-script=\" ./run-router.sh\" --graphql=\" http://localhost:4000/graphql\" --healthcheck=\" http://localhost:4000/health\" --write=\" federation-audit-results.txt\" " ,
8- "start:test-router" : " cd .. && HIVE__SUPERGRAPH__SOURCE=file HIVE__SUPERGRAPH__PATH =lib/query-planner/fixture/spotify-supergraph.graphql cargo router" ,
8+ "start:test-router" : " cd .. && SUPERGRAPH_FILE_PATH =lib/query-planner/fixture/spotify-supergraph.graphql cargo router" ,
99 "test:graphql-over-http" : " node --test graphql-over-http.test.js" ,
1010 "test-junit:graphql-over-http" : " node --test --test-reporter=junit --test-reporter-destination=\" ./reports/graphql-over-http.xml\" graphql-over-http.test.js" ,
1111 "ci:test:graphql-over-http" : " start-server-and-test start:test-router http://localhost:4000 test-junit:graphql-over-http"
Original file line number Diff line number Diff line change @@ -11,6 +11,5 @@ echo "running router..."
1111
1212cd ..
1313
14- export HIVE__SUPERGRAPH__SOURCE=" file"
15- export HIVE__SUPERGRAPH__PATH=" audits/fed-audit-supergraph.graphql"
14+ export SUPERGRAPH_FILE_PATH=" audits/fed-audit-supergraph.graphql"
1615cargo router
Original file line number Diff line number Diff line change 33```
44cargo subgraphs
55
6- export HIVE__SUPERGRAPH__SOURCE="file"
7- export HIVE__SUPERGRAPH__PATH="bench/supergraph.graphql"
6+ export SUPERGRAPH_FILE_PATH="bench/supergraph.graphql"
87cargo router
98```
109
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ Use the following command to run the Docker image locally:
3737
3838``` bash
3939docker run -p 4000:4000 \
40- -e HIVE__SUPERGRAPH__SOURCE=" file" \
41- -e HIVE__SUPERGRAPH__PATH=" /app/supergraph.graphql" \
40+ -e SUPERGRAPH_FILE_PATH=" /app/supergraph.graphql" \
4241 -v ./bench/supergraph.graphql:/app/supergraph.graphql \
4342 < ID_OF_THE_LOCAL_IMAGE>
4443```
You can’t perform that action at this time.
0 commit comments