Use Docker host gateway for edge E2E
This commit is contained in:
@@ -219,7 +219,12 @@ jobs:
|
||||
vendor/bin/pest tests/Integration/EdgeGateway --colors=always"
|
||||
|
||||
- name: Run edge gateway E2E smoke
|
||||
run: node scripts/edge-gateway-e2e.mjs
|
||||
run: |
|
||||
docker_host="$(ip route show default 2>/dev/null | awk '/default/ { print $3; exit }')"
|
||||
if [ -z "${docker_host}" ]; then
|
||||
docker_host="localhost"
|
||||
fi
|
||||
EDGE_GATEWAY_E2E_BASE_URL="http://${docker_host}:18080/api" node scripts/edge-gateway-e2e.mjs
|
||||
|
||||
- name: Tear down local stack
|
||||
if: always()
|
||||
|
||||
@@ -381,6 +381,8 @@ async function main() {
|
||||
"start",
|
||||
"--install-token",
|
||||
installToken,
|
||||
"--host-api-url",
|
||||
baseUrl,
|
||||
"--container-name",
|
||||
containerName,
|
||||
"--config-dir",
|
||||
|
||||
Reference in New Issue
Block a user