Tuesday, May 24, 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 as the application name, it detected that this was a Sinatra application!
Memory reservation: 64M (just a test)
got the following error:
Creating Application: Error 702: External URIs are not enabled for this account
I believe this was due to the fact that "hello.cloudfoundry.com" was "taken"... tried again with sedatiko and...
Creating Application: OK
Would you like to bind any services to 'sedatiko'? [yN]:

Would you like to bind any services to 'sedatiko'? [yN]:
Uploading Application:
Checking for available resources: OK
Packing application: OK
Uploading (0K): OK
Push Status: OK
Staging Application: OK
Starting Application: OK

[sedatiko@fedora ruby]$




Thursday, May 19, 2011

Culture Japan - Your portal to Japan

One of the best sites for Japanese Culture Culture Japan - Your portal to Japan .. it is like walking through the streets .. I miss Japan (eventhough I spent only 3 days there :)

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
...