mirror of https://github.com/OpenVidu/openvidu.git
deployment: Don't wait media-node-controller in openvidu_launch_kms.sh openvidu-pro script
parent
62f50b8796
commit
a9e6e919a1
|
@ -59,18 +59,6 @@ docker run --rm amazon/aws-cli:${AWS_CLI_DOCKER_TAG} ec2 wait instance-running -
|
|||
KMS_IP=$(cat ${OUTPUT} | jq --raw-output ' .Instances[] | .NetworkInterfaces[0] | .PrivateIpAddress')
|
||||
KMS_ID=$(cat ${OUTPUT} | jq --raw-output ' .Instances[] | .InstanceId')
|
||||
|
||||
# Wait media-node controller
|
||||
attempt_counter=0
|
||||
max_attempts=10
|
||||
|
||||
until $(curl --output /dev/null --silent --head --fail -u OPENVIDUAPP:${OPENVIDU_SECRET} http://${KMS_IP}:3000/media-node/status); do
|
||||
if [ ${attempt_counter} -eq ${max_attempts} ];then
|
||||
exit 1
|
||||
fi
|
||||
attempt_counter=$(($attempt_counter+1))
|
||||
sleep 5
|
||||
done
|
||||
|
||||
jq -n \
|
||||
--arg id "${KMS_ID}" \
|
||||
--arg ip "${KMS_IP}" \
|
||||
|
|
Loading…
Reference in New Issue