OW2 Consortium elastic-grid

Rev

Rev 507 | Rev 512 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 507 Rev 508
Line 54... Line 54...
54
S3_BUCKET=elastic-grid-distributions
54
S3_BUCKET=elastic-grid-distributions
55

55

56
# The EC2 instance type: m1.small, m1.large, m1.xlarge
56
# The EC2 instance type: m1.small, m1.large, m1.xlarge
57
INSTANCE_TYPE="m1.small"
57
INSTANCE_TYPE="m1.small"
58
#INSTANCE_TYPE="m1.large"
58
#INSTANCE_TYPE="m1.large"
59
#INSTANCE_TYPE="m1.xlarge"
-
 
60

59

61
#
60
#
62
# The following variables are only used when creating an AMI.
61
# The following variables are only used when creating an AMI.
63
#
62
#
64

63

65
# The version number of the installed JDK.
64
# The version number of the installed JDK.
66
JAVA_VERSION=1.6.0_15
65
JAVA_VERSION=1.6.0_15
67

66

68
# SUPPORTED_ARCHITECTURES = ['i386', 'x86_64']
67
# SUPPORTED_ARCHITECTURES = ['i386', 'x86_64']
69
# The download URL for the Sun JDK. Visit http://java.sun.com/javase/downloads/index.jsp and get the URL for the "Linux self-extracting file".
-
 
70
if [ "$INSTANCE_TYPE" == "m1.small" -o "$INSTANCE_TYPE" == "c1.medium" ]; then
68
if [ "$INSTANCE_TYPE" == "m1.small" -o "$INSTANCE_TYPE" == "c1.medium" ]; then
71
  ARCH='i386'
69
  ARCH='i386'
72
  BASE_AMI_IMAGE="ami-5647a33f"  # ec2-public-images/fedora-8-i386-base-v1.08.manifest.xml
70
  BASE_AMI_IMAGE="ami-5647a33f"  # ec2-public-images/fedora-8-i386-base-v1.08.manifest.xml
73
  JAVA_BINARY_URL=""
-
 
-
 
71
  JAVA_BINARY_URL="http://elastic-grid-distributions.s3.amazonaws.com/jdk-6u15-linux-i586.bin"
74
else
72
else
75
  ARCH='x86_64'
73
  ARCH='x86_64'
76
  BASE_AMI_IMAGE="ami-2547a34c"  # ec2-public-images/fedora-8-x86_64-base-v1.08.manifest.xml
74
  BASE_AMI_IMAGE="ami-2547a34c"  # ec2-public-images/fedora-8-x86_64-base-v1.08.manifest.xml
77
  JAVA_BINARY_URL=""
-
 
-
 
75
  JAVA_BINARY_URL="http://elastic-grid-distributions.s3.amazonaws.com/jdk-6u15-linux-x64.bin"
78
fi
76
fi
79

77

80
if [ "$AMI_KERNEL" != "" ]; then
78
if [ "$AMI_KERNEL" != "" ]; then
81
  KERNEL_ARG="--kernel ${AMI_KERNEL}"
79
  KERNEL_ARG="--kernel ${AMI_KERNEL}"
82
fi
80
fi