mirror of https://github.com/OpenVidu/openvidu.git
ci: Get gateway IP by using subnet value from docker network inspect
parent
ab1f7c4688
commit
6947fe87cb
|
@ -32,7 +32,7 @@ function environmentLaunch {
|
||||||
|
|
||||||
# Kurento and mediasoup needs to run as network host, so we need Docker host IP.
|
# Kurento and mediasoup needs to run as network host, so we need Docker host IP.
|
||||||
local DOCKER_HOST_IP
|
local DOCKER_HOST_IP
|
||||||
DOCKER_HOST_IP="$(docker network inspect bridge | grep Gateway | cut -d'"' -f4)"
|
DOCKER_HOST_IP="$(docker network inspect bridge | grep Subnet | cut -d'"' -f4 | cut -d'/' -f1 | sed 's/.$/1/')"
|
||||||
openssl req -newkey rsa:2048 \
|
openssl req -newkey rsa:2048 \
|
||||||
-new -nodes -x509 -days 3650 \
|
-new -nodes -x509 -days 3650 \
|
||||||
-subj "/CN=www.mydom.com/O=My Company LTD./C=US" \
|
-subj "/CN=www.mydom.com/O=My Company LTD./C=US" \
|
||||||
|
@ -111,7 +111,7 @@ function openviduE2ETests {
|
||||||
|
|
||||||
# Kurento and mediasoup needs to run as network host, so we need Docker host IP.
|
# Kurento and mediasoup needs to run as network host, so we need Docker host IP.
|
||||||
local DOCKER_HOST_IP
|
local DOCKER_HOST_IP
|
||||||
DOCKER_HOST_IP="$(docker network inspect bridge | grep Gateway | cut -d'"' -f4)"
|
DOCKER_HOST_IP="$(docker network inspect bridge | grep Subnet | cut -d'"' -f4 | cut -d'/' -f1 | sed 's/.$/1/')"
|
||||||
|
|
||||||
|
|
||||||
pushd openvidu-test-e2e
|
pushd openvidu-test-e2e
|
||||||
|
|
Loading…
Reference in New Issue