mirror of https://github.com/OpenVidu/openvidu.git
openvidu-pro: Add custom env variables for custom instance type and volume size to be added in rest endpoint to add media nodes
parent
1102308c17
commit
4204aef74e
|
@ -35,6 +35,14 @@ exit_on_error () {
|
|||
esac
|
||||
}
|
||||
|
||||
# Check custom parameters
|
||||
if [[ -n "${CUSTOM_INSTANCE_TYPE}" ]]; then
|
||||
AWS_INSTANCE_TYPE="${CUSTOM_INSTANCE_TYPE}"
|
||||
fi
|
||||
if [[ -n "${CUSTOM_VOLUME_SIZE}" ]]; then
|
||||
AWS_VOLUME_SIZE="${CUSTOM_VOLUME_SIZE}"
|
||||
fi
|
||||
|
||||
docker run --rm amazon/aws-cli:${AWS_CLI_DOCKER_TAG} ec2 run-instances \
|
||||
--image-id ${AWS_IMAGE_ID} --count 1 \
|
||||
--instance-type ${AWS_INSTANCE_TYPE} \
|
||||
|
|
Loading…
Reference in New Issue