Skip to main content

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]$




Comments

Popular posts from this blog

Employment Based Green Card Marathon

There are 3 most popular ways to get a Green Card to live and work in US: Through Marriage with a US Citizen, Employment Sponsorship and the Diversity Lottery. I would like to articulate on the unfairness of the process for the Employment based applicants and its repercussions. After getting a scholarship to study at Brandeis University, I arrived in the United States on August 28, 1998 on an F-1 Student Visa. After graduating with my Master's degree, I had 1 year of OPT - Optional Practical Training which allowed me to work for companies that were in fields similar to my concentration. Next chapter in my immigration story is the H1-B Work Visa which is frowned upon. This visa provides an entry point for skilled immigrants and it is one of the very few points of entry to the US based on merit. Scorn on this quota of about 85k is well deserved on an emotional level, especially when considering high unemployment of today's workplace. Yet, working in IT and being involved with

Online Education

I am enamored with the open coursework offerings of MIT and Stanford. I would contemplate hard on going to college and go under hundreds of thousands of dollars of debt if these high quality offerings were provided for free. Why not have all material for free and offer exams ala certifications? CNBC Article . Currently watching Special Relativity from Leonard Susskind

What to do with your Extra Router

When switching to Verizon FIOS, I retired my SMC router. Recently, I was complaining about the weak wireless signal to my HTPC which is on the other side of our condo. Suddenly, it made sense to use the SMC as an extender. Simply, login to the extra routers menu and disable DHCP. Switch mode from Gateway to Repeater (Bridge with some models). Connect a client ethernet cable from your main router to the WAN port of your secondary one. You should be done! Good guides: http://www.tomshardware.com/forum/23864-42-exactly-connect-router-link-first http://ask-leo.com/can_i_use_a_second_wireless_access_point_to_extend_my_wireless_network.html