We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 242ac17 commit fe70977Copy full SHA for fe70977
4 files changed
api/models.py
@@ -196,14 +196,14 @@ class Flavor(UuidAuditedModel):
196
# Deis-optimized EC2 amis -- with 3.8 kernel, chef 11 deps,
197
# and large docker images (e.g. buildstep) pre-installed
198
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',
+ 'ap-northeast-1': 'ami-6da8356c',
+ 'ap-southeast-1': 'ami-a66f24f4',
+ 'ap-southeast-2': 'ami-d5f66bef',
+ 'eu-west-1': 'ami-acbf5adb',
+ 'sa-east-1': 'ami-f9fd5ae4',
+ 'us-east-1': 'ami-69f3bc00',
+ 'us-west-1': 'ami-f0695cb5',
+ 'us-west-2': 'ami-ea1e82da',
207
}
208
209
class Meta:
contrib/check-deis-deps.sh
@@ -3,34 +3,34 @@
3
# check for git
4
if ! which git > /dev/null; then
5
echo 'Please install git and ensure it is in your $PATH.'
6
- exit
+ exit 1
7
fi
8
9
# check for RubyGems and friends
10
if ! which ruby > /dev/null; then
11
echo 'Please install ruby and ensure it is in your $PATH.'
12
13
14
if ! which gem > /dev/null; then
15
echo 'Please install RubyGems and ensure "gem" is in your $PATH.'
16
17
18
if ! which bundle > /dev/null; then
19
echo 'Please install the bundler ruby gem and ensure "bundle" is in your $PATH.'
20
21
22
bundles=`bundle list | egrep 'berkshelf|chef|foodcritic|knife-' | wc -l`
23
if ! [ $bundles -ge 4 ]; then
24
echo 'Please run "bundle install" for required ruby gems.'
25
26
27
28
# check for working knife
29
if ! which knife > /dev/null; then
30
echo 'Please install a knife-<provider> ruby gem and ensure "knife" is in your $PATH.'
31
32
33
if ! knife client list > /dev/null; then
34
echo 'Please ensure the knife.rb file is set up correctly for your Chef account.'
35
36
contrib/prepare-ubuntu-ami.sh
@@ -7,28 +7,32 @@
#
# 1. Launch a vanilla Ubuntu 12.04 instance (64-bit with an EBS root volume)
# 2. SSH in and install the 3.8 kernel with:
-# apt-get update && apt-get install -yq linux-generic-lts-raring && reboot
+# apt-get update && apt-get install -yq linux-image-generic-lts-raring linux-headers-generic-lts-raring && reboot
# 3. After reboot is complete, SSH in and `uname -r` to confirm kernel is 3.8
# 4. Run this script (as root!) to optimize the image for fast boot times
# 5. Create a new AMI from the root volume
# 6. Distribute the AMI to other regions using `ec2-copy-image`
# 7. Create/update your Deis flavors to use your new AMIs
-# add docker ppa
-apt-add-repository ppa:dotcloud/lxc-docker -y
+# Add the Docker repository key to your local keychain
+# using apt-key finger you can check the fingerprint matches 36A1 D786 9245 C895 0F96 6E92 D857 6A8B A88D 21E9
+curl https://get.docker.io/gpg | apt-key add -
+
+# Add the Docker repository to your apt sources list.
+echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
# upgrade to latest packages
apt-get update
apt-get dist-upgrade -yq
# install required packages
-apt-get install lxc-docker curl git python-setuptools python-pip -yq
+apt-get install lxc-docker curl git make python-setuptools python-pip -yq
# create buildstep docker image
git clone https://github.com/opdemand/buildstep.git
cd buildstep
-./build.sh ./stack deis/buildstep
+make
cd ..
37
rm -rf buildstep
38
contrib/provision-ec2-controller.sh
@@ -7,12 +7,16 @@ fi
# check for Deis' general dependencies
thisdir=`dirname $0`
-$thisdir/check-deis-deps.sh
+if ! $thisdir/check-deis-deps.sh; then
+ echo 'Deis is missing some dependencies.'
+fi
# check for EC2 API tools in $PATH
if ! which ec2-describe-group > /dev/null; then
echo 'Please install the EC2 API command-line tools and ensure they are in your $PATH.'
# check for AWS environment variables
@@ -24,21 +28,21 @@ region=$1
# see contrib/prepare-ubuntu-ami.sh for instructions
# on creating your own deis-optmized AMIs
if [ "$region" == "ap-northeast-1" ]; then
- image=ami-a57aeca4
+ image=ami-6da8356c
elif [ "$region" == "ap-southeast-1" ]; then
- image=ami-e03a72b2
+ image=ami-a66f24f4
elif [ "$region" == "ap-southeast-2" ]; then
- image=ami-bd801287
+ image=ami-d5f66bef
elif [ "$region" == "eu-west-1" ]; then
- image=ami-d9d3cdad
+ image=ami-acbf5adb
elif [ "$region" == "sa-east-1" ]; then
- image=ami-a7df7bba
39
+ image=ami-f9fd5ae4
40
elif [ "$region" == "us-east-1" ]; then
- image=ami-e85a2081
41
+ image=ami-69f3bc00
42
elif [ "$region" == "us-west-1" ]; then
- image=ami-ac6942e9
43
+ image=ami-f0695cb5
44
elif [ "$region" == "us-west-2" ]; then
- image=ami-b55ac885
45
+ image=ami-ea1e82da
46
else
47
echo "Cannot find AMI for region: $region"
48
exit 1
0 commit comments