Skip to content

Commit 22865ce

Browse files
author
jdeolive
committed
specifying image type to hudson build
git-svn-id: http://svn.opengeo.org/suite/trunk@2343 fe66add1-021f-4af3-b75b-ea5154e73f91
1 parent 0f96f5c commit 22865ce

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

aws/amis

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
EBS
2+
---
3+
14
ubuntu 10.04 i386: ami-3e02f257
25
ubuntu 10.04 x86_64: ami-3202f25b
36
centos 5.5 i386: ami-2675854f
47
centos 5.5 x86_64: ami-68f80f01
8+
9+
S3
10+
--
11+
ubuntu 10.04 i386: ami-a403f7cd
12+
ubuntu 10.04 x86_64: ami-fa01f193

aws/hudson_build.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/bin/bash
22

3-
if [ -z $3 ]; then
4-
echo "Usage: $0 AMI_ID <i386|x86_64> <dev|prod>"
3+
if [ -z $4 ]; then
4+
echo "Usage: $0 AMI_ID <i386|x86_64> <ebs|s3> <dev|prod>"
55
exit 1
66
fi
77

88
AMI_ID=$1
99
IMAGE_ARCH=$2
10-
ACCOUNT=$3
10+
IMAGE_TYPE=$3
11+
ACCOUNT=$4
1112
IMAGE_SIZE="m1.small"
1213
if [ $IMAGE_ARCH == "x86_64" ]; then
1314
IMAGE_SIZE="m1.large"
@@ -23,4 +24,4 @@ popd > /dev/null
2324
ver=`get_ami_version $REPO_PATH`
2425

2526
# build it
26-
./build_ubuntu_ami.sh $AMI_ID suite-$ver-$IMAGE_ARCH-`date +"%Y%m%d"` -t ebs -s $IMAGE_SIZE
27+
./build_ubuntu_ami.sh $AMI_ID suite-$ver-$IMAGE_ARCH-`date +"%Y%m%d"` -t $IMAGE_TYPE -s $IMAGE_SIZE

0 commit comments

Comments
 (0)