Skip to content

Commit

Permalink
Add networkInterface as an option to docker run (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Dec 2, 2019
1 parent e424da9 commit b8698d7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions extras/docker/initDockerLicode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,18 @@ if [ "$ERIZOCONTROLLER" == "true" ]; then
fi

if [ "$ERIZOAGENT" == "true" ]; then
echo "config.erizoAgent.publicIP = '$PUBLIC_IP';" >> /opt/licode/licode_config.js
echo "config.erizo.minport = '$MIN_PORT';" >> /opt/licode/licode_config.js
echo "config.erizo.maxport = '$MAX_PORT';" >> /opt/licode/licode_config.js
if [[ ! -z "$PUBLIC_IP" ]]; then
echo "config.erizoAgent.publicIP = '$PUBLIC_IP';" >> /opt/licode/licode_config.js
fi
if [[ ! -z "$MIN_PORT" ]]; then
echo "config.erizo.minport = '$MIN_PORT';" >> /opt/licode/licode_config.js
fi
if [[ ! -z "$MAX_PORT" ]]; then
echo "config.erizo.maxport = '$MAX_PORT';" >> /opt/licode/licode_config.js
fi
if [[ ! -z "$NETWORK_INTERFACE" ]]; then
echo "config.erizo.networkinterface = '$NETWORK_INTERFACE';" >> /opt/licode/licode_config.js
fi
run_erizoAgent
fi

Expand Down

0 comments on commit b8698d7

Please sign in to comment.