Skip to main content

Posts

Showing posts from May, 2011

Cloud Foundry Test - 2

Continuing from where we left off in Cloud Foundry Test - 1...
.. with the latest version of Fedora, I was not able to install rubygems ... so I downloaded and installed vs 1.3.2 (dont know why, probably a stale post I read)... after managing to install Gem I ran the following (http://rubygems.org/pages/download):
gem update --system
...which worked ok... so where were we??? Following the vmc Getting Started instructions in YouTube (http://www.youtube.com/watch?v=dqr8xWQlRcM)
ruby -v (check) gem -v (I had 1.8.3 with some deprecated components) sudo gem update --system (already done as above)
sudo gem install vmc (!!!)
Connect to api.cloudfoundry.com vmc target api.cloudfoundry.com(will receive ok)
Now login to cloudfoundry vmc login(using the temp password) vmc passwd (to reset the password)
Write a small ruby application require 'sinatra' get '/' do "Hello from Cloud Foundry - sedatiko's account" end Go into the directory you have the code and run... vmc push picked hello…

Cloud Foundry Test - 1

Cloud Foundry is a great offering from VMWare - Platform as a Service (PaaS). It allows you to host applications (your code) in certain technologies (ruby, perl) without any hosting or administration. As a "lazy developer" this is heaven, since all you need to worry about is your code working, you do not need to maintain environments...
However, even to gear for such a test, you need an environment, which was my trigger to go with Linux. So...
Download VMWare Workstation and install Download Fedora iso Create new VM and install Fedora
so far so good...then there are fun troubleshooting exercises, like:
how to update the sudoers with my account setting up the linux display options etc .. yawn .. sudo yum install gcc make git ...