Skip to content

Commit c618af9

Browse files
author
Gabriel Monroy
committed
Merge pull request #164 from opdemand/123-update-amis
Fixed #123 -- updated EC2 AMIs and pointers to them.
2 parents 242ac17 + fe70977 commit c618af9

4 files changed

Lines changed: 38 additions & 30 deletions

File tree

api/models.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ class Flavor(UuidAuditedModel):
196196
# Deis-optimized EC2 amis -- with 3.8 kernel, chef 11 deps,
197197
# and large docker images (e.g. buildstep) pre-installed
198198
IMAGE_MAP = {
199-
'ap-northeast-1': 'ami-a57aeca4',
200-
'ap-southeast-1': 'ami-e03a72b2',
201-
'ap-southeast-2': 'ami-bd801287',
202-
'eu-west-1': 'ami-d9d3cdad',
203-
'sa-east-1': 'ami-a7df7bba',
204-
'us-east-1': 'ami-e85a2081',
205-
'us-west-1': 'ami-ac6942e9',
206-
'us-west-2': 'ami-b55ac885',
199+
'ap-northeast-1': 'ami-6da8356c',
200+
'ap-southeast-1': 'ami-a66f24f4',
201+
'ap-southeast-2': 'ami-d5f66bef',
202+
'eu-west-1': 'ami-acbf5adb',
203+
'sa-east-1': 'ami-f9fd5ae4',
204+
'us-east-1': 'ami-69f3bc00',
205+
'us-west-1': 'ami-f0695cb5',
206+
'us-west-2': 'ami-ea1e82da',
207207
}
208208

209209
class Meta:

contrib/check-deis-deps.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@
33
# check for git
44
if ! which git > /dev/null; then
55
echo 'Please install git and ensure it is in your $PATH.'
6-
exit
6+
exit 1
77
fi
88

99
# check for RubyGems and friends
1010
if ! which ruby > /dev/null; then
1111
echo 'Please install ruby and ensure it is in your $PATH.'
12-
exit
12+
exit 1
1313
fi
1414
if ! which gem > /dev/null; then
1515
echo 'Please install RubyGems and ensure "gem" is in your $PATH.'
16-
exit
16+
exit 1
1717
fi
1818
if ! which bundle > /dev/null; then
1919
echo 'Please install the bundler ruby gem and ensure "bundle" is in your $PATH.'
20-
exit
20+
exit 1
2121
fi
2222
bundles=`bundle list | egrep 'berkshelf|chef|foodcritic|knife-' | wc -l`
2323
if ! [ $bundles -ge 4 ]; then
2424
echo 'Please run "bundle install" for required ruby gems.'
25-
exit
25+
exit 1
2626
fi
2727

2828
# check for working knife
2929
if ! which knife > /dev/null; then
3030
echo 'Please install a knife-<provider> ruby gem and ensure "knife" is in your $PATH.'
31-
exit
31+
exit 1
3232
fi
3333
if ! knife client list > /dev/null; then
3434
echo 'Please ensure the knife.rb file is set up correctly for your Chef account.'
35-
exit
35+
exit 1
3636
fi

contrib/prepare-ubuntu-ami.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,32 @@
77
#
88
# 1. Launch a vanilla Ubuntu 12.04 instance (64-bit with an EBS root volume)
99
# 2. SSH in and install the 3.8 kernel with:
10-
# apt-get update && apt-get install -yq linux-generic-lts-raring && reboot
10+
# apt-get update && apt-get install -yq linux-image-generic-lts-raring linux-headers-generic-lts-raring && reboot
1111
# 3. After reboot is complete, SSH in and `uname -r` to confirm kernel is 3.8
1212
# 4. Run this script (as root!) to optimize the image for fast boot times
1313
# 5. Create a new AMI from the root volume
1414
# 6. Distribute the AMI to other regions using `ec2-copy-image`
1515
# 7. Create/update your Deis flavors to use your new AMIs
1616
#
1717

18-
# add docker ppa
19-
apt-add-repository ppa:dotcloud/lxc-docker -y
18+
# Add the Docker repository key to your local keychain
19+
# using apt-key finger you can check the fingerprint matches 36A1 D786 9245 C895 0F96 6E92 D857 6A8B A88D 21E9
20+
curl https://get.docker.io/gpg | apt-key add -
21+
22+
# Add the Docker repository to your apt sources list.
23+
echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
2024

2125
# upgrade to latest packages
2226
apt-get update
2327
apt-get dist-upgrade -yq
2428

2529
# install required packages
26-
apt-get install lxc-docker curl git python-setuptools python-pip -yq
30+
apt-get install lxc-docker curl git make python-setuptools python-pip -yq
2731

2832
# create buildstep docker image
2933
git clone https://github.com/opdemand/buildstep.git
3034
cd buildstep
31-
./build.sh ./stack deis/buildstep
35+
make
3236
cd ..
3337
rm -rf buildstep
3438

contrib/provision-ec2-controller.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ fi
77

88
# check for Deis' general dependencies
99
thisdir=`dirname $0`
10-
$thisdir/check-deis-deps.sh
10+
if ! $thisdir/check-deis-deps.sh; then
11+
echo 'Deis is missing some dependencies.'
12+
exit 1
13+
fi
14+
1115

1216
# check for EC2 API tools in $PATH
1317
if ! which ec2-describe-group > /dev/null; then
1418
echo 'Please install the EC2 API command-line tools and ensure they are in your $PATH.'
15-
exit
19+
exit 1
1620
fi
1721

1822
# check for AWS environment variables
@@ -24,21 +28,21 @@ region=$1
2428
# see contrib/prepare-ubuntu-ami.sh for instructions
2529
# on creating your own deis-optmized AMIs
2630
if [ "$region" == "ap-northeast-1" ]; then
27-
image=ami-a57aeca4
31+
image=ami-6da8356c
2832
elif [ "$region" == "ap-southeast-1" ]; then
29-
image=ami-e03a72b2
33+
image=ami-a66f24f4
3034
elif [ "$region" == "ap-southeast-2" ]; then
31-
image=ami-bd801287
35+
image=ami-d5f66bef
3236
elif [ "$region" == "eu-west-1" ]; then
33-
image=ami-d9d3cdad
37+
image=ami-acbf5adb
3438
elif [ "$region" == "sa-east-1" ]; then
35-
image=ami-a7df7bba
39+
image=ami-f9fd5ae4
3640
elif [ "$region" == "us-east-1" ]; then
37-
image=ami-e85a2081
41+
image=ami-69f3bc00
3842
elif [ "$region" == "us-west-1" ]; then
39-
image=ami-ac6942e9
43+
image=ami-f0695cb5
4044
elif [ "$region" == "us-west-2" ]; then
41-
image=ami-b55ac885
45+
image=ami-ea1e82da
4246
else
4347
echo "Cannot find AMI for region: $region"
4448
exit 1

0 commit comments

Comments
 (0)