Skip to content

Instantly share code, notes, and snippets.

@JeanSebTr
Created January 18, 2012 21:48
Show Gist options
  • Save JeanSebTr/1635972 to your computer and use it in GitHub Desktop.
Save JeanSebTr/1635972 to your computer and use it in GitHub Desktop.
Notes for a successful installation of cloudfoundry on Amazon's EC2
Start with a Ubuntu 10.04 LTS AMI
- 32 bits : ami-71dc0b18
- 64 bits : ami-55dc0b3c
Open required ports in your security group
- 22 (only for the installation)
* Router
- 80
* Cloud controller
- ...
* nats server
- ...
* ...
Push your recipe package
# scp -i your_key.pem dev_setup.tar.gz [email protected]:~/
Connect to your AMI
# ssh -i your_key.pem [email protected]
Add the Chef apt repository
# sudo bash -c 'echo "deb http://apt.opscode.com/ lucid-0.10 main" > /etc/apt/sources.list.d/opscode.list'
# curl http://apt.opscode.com/[email protected] | sudo apt-key add -
Install Chef
# sudo apt-get update
# wget http://support.cloudfoundry.com/attachments/token/j7wxprpd9teyopk/?name=chef_0.10.4-1_all.deb
# sudo dpkg -i index.html\?name\=chef_0.10.4-1_all.deb
# sudo apt-get -fy install
- You can just select OK when the Chef install ask you for config
Start the chef deployment
# tar -xzf dev_setup.tar.gz
# cd dev_setup
- Select the deployment recipe you want to use : "-c"
- Choose the domain name for your setup : "-D"
- Select a repository and branch to fetch cloudfoundry from or default to the official cloudfoundry repo : "-r" and "-b"
# ./bin/vcap_dev_setup -c ./deployments/your-config.yml -D your-domain.com -r git://github.com/JeanSebTr/vcap.git -b master
Go drink a beer. It will take some time depending on your AMI size. (it will compile at least ruby 1.8 & 1.9)
References :
- Ubuntu AMIs : http://alestic.com/
- Chef repo : http://wiki.opscode.com/display/chef/Opscode+Apt+Repository+Excerpt
- Chef version : http://support.cloudfoundry.com/entries/20767116-ruby-1-8-7-p334-missing-in-installation-using-chef
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment