Skip to content

Commit

Permalink
ci-scripts: add "grep 172" to DOCKER_HOST_IP command
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Apr 18, 2023
1 parent 19f9bee commit 7529de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci-scripts/openvidu-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function environmentLaunch {

# Kurento and mediasoup needs to run as network host, so we need Docker host IP.
local DOCKER_HOST_IP
DOCKER_HOST_IP="$(docker network inspect bridge | grep Subnet | cut -d'"' -f4 | cut -d'/' -f1 | sed 's/.$/1/')"
DOCKER_HOST_IP="$(docker network inspect bridge | grep Subnet | cut -d'"' -f4 | cut -d'/' -f1 | sed 's/.$/1/' | grep 172)"

if [[ "${MEDIA_SERVER}" == "kurento" ]]; then
docker run -e KMS_UID=$(id -u) --network=host --detach=true --volume=/opt/openvidu/recordings:/opt/openvidu/recordings "${KURENTO_MEDIA_SERVER_IMAGE}"
Expand Down Expand Up @@ -104,7 +104,7 @@ function openviduE2ETests {

# Kurento and mediasoup needs to run as network host, so we need Docker host IP.
local DOCKER_HOST_IP
DOCKER_HOST_IP="$(docker network inspect bridge | grep Subnet | cut -d'"' -f4 | cut -d'/' -f1 | sed 's/.$/1/')"
DOCKER_HOST_IP="$(docker network inspect bridge | grep Subnet | cut -d'"' -f4 | cut -d'/' -f1 | sed 's/.$/1/' | grep 172)"

pushd openvidu-test-e2e
if [[ "${MEDIA_SERVER}" == "kurento" ]]; then
Expand Down

0 comments on commit 7529de5

Please sign in to comment.