jbbarth's

This post was just a draft and shouldn’t have been published, my mistake. A new post is available here

Yesterday, Ezra Zygmuntowicz team @ VMWare announced CloudFoundry, an opensource Platform-as-a-Service (PaaS) technology, sponsored by VMWare, with a hosted version at http://www.cloudfoundry.com/. For the record, Ezra Zygmuntowicz was also co-founder of Engine Yard, probably one of the best known Rails cloud hoster with Heroku.

Now let’s try CloudFoundry.

First, I only have a Ubuntu Lucid 32bits VM right now, but I hope it will be OK for some tests. My VMs run under Vagrant, so here are the steps to setup the VM, boot, and connect :

mkdir lucid32-cloudfoundry
cd lucid32-cloudfoundry
vagrant init lucid32
vagrant up
vagrant ssh

CloudFoundry assumes you run your ruby under RVM, which is a great thing. I have my own setup script for that, I prefer using it than following the canonical install process:

sudo aptitude update
sudo bash < <(wget -q --no-check-certificate -O - https://github.com/jbbarth/cookbooks/raw/master/install-rvm.sh)

(if you want to install RVM “normally”, it’s fine too)

After a newgroup command or a exit/ssh again, so that groups get updated and you have rvm in your secondary groups, we can install a ruby :

rvm install 1.9.2
rvm 1.9.2 --default

Clone the cloudfoundry repositories @ github and install client gem:

cd
mkdir cloudfoundry
cd cloudfoundry
git clone https://github.com/cloudfoundry/vcap.git
cd vcap
git submodule update --init
gem install vmc --no-rdoc --no-ri

Then we setup vcap:

sudo ./setup/vcap_setup

Configure mysql root password:

read mysqlpass
sudo sed -i "/^  pass:/s/:.*/: \"$mysqlpass\"/" services/mysql/config/mysql_node.yml
unset mysqlpass

Configure Nginx:

sudo cp setup/simple.nginx.conf /etc/nginx/nginx.conf
sudo service nginx restart

Install bundler and run bundler:install:
@

Hierarchy: previous, next

Comments

There are 0 comments on this post. Post yours →

Post a comment

Required fields in bold.