Deployments: final version

pull/797/head
pabloFuente 2023-03-27 18:31:59 +02:00
parent ca0df78bc4
commit 4ad79c7bcb
5 changed files with 18 additions and 18 deletions

View File

@ -4,9 +4,9 @@ set -eu -o pipefail
CF_RELEASE=${CF_RELEASE:-false} CF_RELEASE=${CF_RELEASE:-false}
AWS_KEY_NAME=${AWS_KEY_NAME:-} AWS_KEY_NAME=${AWS_KEY_NAME:-}
# if [[ $CF_RELEASE == "true" ]]; then if [[ $CF_RELEASE == "true" ]]; then
# git checkout v$OPENVIDU_VERSION git checkout v$OPENVIDU_VERSION
# fi fi
export AWS_DEFAULT_REGION=eu-west-1 export AWS_DEFAULT_REGION=eu-west-1
@ -89,7 +89,7 @@ aws cloudformation delete-stack --stack-name openvidu-ce-${DATESTAMP}
# Wait for the instance # Wait for the instance
# Unfortunately, aws cli does not have a way to increase timeout # Unfortunately, aws cli does not have a way to increase timeout
WAIT_RETRIES=0 WAIT_RETRIES=0
WAIT_MAX_RETRIES=3 WAIT_MAX_RETRIES=5
until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do
aws ec2 wait image-available --image-ids ${OV_RAW_AMI_ID} && break aws ec2 wait image-available --image-ids ${OV_RAW_AMI_ID} && break
WAIT_RETRIES=$((WAIT_RETRIES + 1)) WAIT_RETRIES=$((WAIT_RETRIES + 1))

View File

@ -123,7 +123,7 @@ Resources:
mode: "000755" mode: "000755"
owner: "root" owner: "root"
group: "root" group: "root"
'/usr/local/bin/openvidu-init.sh': "/usr/local/bin/openvidu-init.sh":
content: | content: |
#!/bin/bash -x #!/bin/bash -x

View File

@ -5,9 +5,9 @@ AWS_KEY_NAME=${AWS_KEY_NAME:-}
CF_RELEASE=${CF_RELEASE:-false} CF_RELEASE=${CF_RELEASE:-false}
KMS_AMI_ID=${KMS_AMI_ID:-} KMS_AMI_ID=${KMS_AMI_ID:-}
# if [[ $CF_RELEASE == "true" ]]; then if [[ $CF_RELEASE == "true" ]]; then
# git checkout v$OPENVIDU_PRO_VERSION git checkout v$OPENVIDU_PRO_VERSION
# fi fi
export AWS_DEFAULT_REGION=eu-west-1 export AWS_DEFAULT_REGION=eu-west-1
@ -93,7 +93,7 @@ echo "Create AMI with ID: ${OV_RAW_AMI_ID}"
# Wait for the instance # Wait for the instance
# Unfortunately, aws cli does not have a way to increase timeout # Unfortunately, aws cli does not have a way to increase timeout
WAIT_RETRIES=0 WAIT_RETRIES=0
WAIT_MAX_RETRIES=3 WAIT_MAX_RETRIES=5
until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do
aws ec2 wait image-available --image-ids ${OV_RAW_AMI_ID} && break aws ec2 wait image-available --image-ids ${OV_RAW_AMI_ID} && break
WAIT_RETRIES=$((WAIT_RETRIES + 1)) WAIT_RETRIES=$((WAIT_RETRIES + 1))

View File

@ -4,9 +4,9 @@ set -eu -o pipefail
AWS_KEY_NAME=${AWS_KEY_NAME:-} AWS_KEY_NAME=${AWS_KEY_NAME:-}
CF_RELEASE=${CF_RELEASE:-false} CF_RELEASE=${CF_RELEASE:-false}
# if [[ $CF_RELEASE == "true" ]]; then if [[ $CF_RELEASE == "true" ]]; then
# git checkout v$OPENVIDU_PRO_VERSION git checkout v$OPENVIDU_PRO_VERSION
# fi fi
export AWS_DEFAULT_REGION=eu-west-1 export AWS_DEFAULT_REGION=eu-west-1
@ -77,7 +77,7 @@ echo "Create AMI with ID: ${OV_RAW_AMI_ID}"
# Wait for the instance # Wait for the instance
# Unfortunately, aws cli does not have a way to increase timeout # Unfortunately, aws cli does not have a way to increase timeout
WAIT_RETRIES=0 WAIT_RETRIES=0
WAIT_MAX_RETRIES=3 WAIT_MAX_RETRIES=5
until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do
aws ec2 wait image-available --image-ids ${OV_RAW_AMI_ID} && break aws ec2 wait image-available --image-ids ${OV_RAW_AMI_ID} && break
WAIT_RETRIES=$((WAIT_RETRIES + 1)) WAIT_RETRIES=$((WAIT_RETRIES + 1))

View File

@ -11,9 +11,9 @@ fi
CF_RELEASE=${CF_RELEASE:-false} CF_RELEASE=${CF_RELEASE:-false}
AWS_KEY_NAME=${AWS_KEY_NAME:-} AWS_KEY_NAME=${AWS_KEY_NAME:-}
# if [[ $CF_RELEASE == "true" ]]; then if [[ $CF_RELEASE == "true" ]]; then
# git checkout v$OPENVIDU_PRO_VERSION git checkout v$OPENVIDU_PRO_VERSION
# fi fi
export AWS_DEFAULT_REGION=eu-west-1 export AWS_DEFAULT_REGION=eu-west-1
@ -107,7 +107,7 @@ aws cloudformation delete-stack --stack-name kms-${DATESTAMP}
# Wait for the instance # Wait for the instance
# Unfortunately, aws cli does not have a way to increase timeout # Unfortunately, aws cli does not have a way to increase timeout
WAIT_RETRIES=0 WAIT_RETRIES=0
WAIT_MAX_RETRIES=3 WAIT_MAX_RETRIES=5
until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do
aws ec2 wait image-available --image-ids ${KMS_RAW_AMI_ID} && break aws ec2 wait image-available --image-ids ${KMS_RAW_AMI_ID} && break
WAIT_RETRIES=$((WAIT_RETRIES + 1)) WAIT_RETRIES=$((WAIT_RETRIES + 1))
@ -167,7 +167,7 @@ aws cloudformation delete-stack --stack-name openvidu-${DATESTAMP}
# Wait for the instance # Wait for the instance
# Unfortunately, aws cli does not have a way to increase timeout # Unfortunately, aws cli does not have a way to increase timeout
WAIT_RETRIES=0 WAIT_RETRIES=0
WAIT_MAX_RETRIES=3 WAIT_MAX_RETRIES=5
until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do until [ "${WAIT_RETRIES}" -ge "${WAIT_MAX_RETRIES}" ]; do
aws ec2 wait image-available --image-ids ${OV_RAW_AMI_ID} && break aws ec2 wait image-available --image-ids ${OV_RAW_AMI_ID} && break
WAIT_RETRIES=$((WAIT_RETRIES + 1)) WAIT_RETRIES=$((WAIT_RETRIES + 1))