deployment: Don't wait media-node-controller in openvidu_launch_kms.sh openvidu-pro script

pull/609/head
cruizba 2021-02-13 02:06:58 +01:00
parent 62f50b8796
commit a9e6e919a1
1 changed files with 0 additions and 12 deletions

View File

@ -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_IP=$(cat ${OUTPUT} | jq --raw-output ' .Instances[] | .NetworkInterfaces[0] | .PrivateIpAddress')
KMS_ID=$(cat ${OUTPUT} | jq --raw-output ' .Instances[] | .InstanceId') 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 \ jq -n \
--arg id "${KMS_ID}" \ --arg id "${KMS_ID}" \
--arg ip "${KMS_IP}" \ --arg ip "${KMS_IP}" \