New installers for cf, uaac and bosh that don't require Ruby

888 views
Skip to first unread message

Dr Nic Williams

unread,
Jan 19, 2015, 10:05:43 AM1/19/15
to vcap...@cloudfoundry.org, bosh-users
The requirement of Ruby was one of the reasons for rewriting the cf CLI into golang. The uaac and bosh CLIs are still written in ruby; but fortunately there are now installers that remove the need to pre-install a correctly working latest version of Ruby.

These installers are primarily for CF administrators/deployers. Normal users only need the cf release from https://github.com/cloudfoundry/cli/releases


This will install the bosh CLI, and various useful plugins such as `bosh bootstrap deploy`. See README above.

For CF admins, there is now traveling-cf-admin https://github.com/cloudfoundry-community/traveling-cf-admin

This will install the cf and uaac CLIs, and include a pre-compiled version of Ruby plus required native gems.

http://phusion.github.io/traveling-ruby/ made both of these installers possible.

Nic

--
Dr Nic Williams
Stark & Wayne LLC - consultancy for Cloud Foundry users
twitter @drnic

long.ngu...@gmail.com

unread,
Jan 19, 2015, 10:12:52 AM1/19/15
to vcap...@cloudfoundry.org, bosh-...@cloudfoundry.org
Awesome!

Dr Nic Williams

unread,
Jan 19, 2015, 10:31:29 AM1/19/15
to vcap...@cloudfoundry.org, bosh-...@cloudfoundry.org
As an example use case, terraform-aws-cf-install now installs bosh, cf, and uaac on the bastion VM:

cian...@gmail.com

unread,
Apr 3, 2015, 6:40:58 AM4/3/15
to vcap...@cloudfoundry.org, bosh-...@cloudfoundry.org
That's great! Any plans to make a Windows installer for traveling-cf-admin?


Dr Nic Williams

unread,
Apr 3, 2015, 11:07:10 AM4/3/15
to bosh-...@cloudfoundry.org, vcap...@cloudfoundry.org, bosh-...@cloudfoundry.org
Is there a windows equivalent to "curl | bash"? Or how can you imagine the download/install system?



On Fri, Apr 3, 2015 at 3:40 AM, cian...@gmail.com <cian...@gmail.com> wrote:

That's great! Any plans to make a Windows installer for traveling-cf-admin?


To unsubscribe from this group and stop receiving emails from it, send an email to bosh-users+...@cloudfoundry.org.

Wayne E. Seguin

unread,
Apr 3, 2015, 1:13:55 PM4/3/15
to bosh-users, vcap...@cloudfoundry.org
First you have to get the file to the box, there are two decent options for it in PowerShell these days (yes, there are more archaic ones).

Option one is to use Invoke-WebRequest [0]:

    Invoke-WebRequest https://github.com/cloudfoundry/...project.ps -OutFile c:\temp\project.ps

Option two is to create a webclient [1] option (if the above is too slow):

    $wc = New-Object net.webclient
    $wc.Downloadfile("https://github.com/cloudfoundry/..../project.ps", "c:\temp\project.ps")


Once you have the file downloaded you can run it. 

    c:\temp\project.ps

That said, you may need to allow the execution policy fo the scripts to be run:

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
    

After chooseing 'run as administrator' when launching powershell.

You can see the documentation [2] for running scripts for more information on this.

References:


Dr Nic Williams

unread,
Apr 3, 2015, 1:36:12 PM4/3/15
to bosh-...@cloudfoundry.org, bosh-users, vcap...@cloudfoundry.org
Thanks Wayne!

I just remembered that BOSH CLI may not work on Windows for all commands perhaps; but could be fixed over time I'm sure.

cian...@gmail.com

unread,
Apr 7, 2015, 11:59:12 AM4/7/15
to vcap...@cloudfoundry.org, bosh-...@cloudfoundry.org
Thanks guys, sorry I should have clarified - I was mainly looking for a quick way to get the uaac command line tool.

If anyone else is interested in that, the procedure below will get the uaac tool in about 10 minutes (with >= 1 MB/s internet connection) :

1. Install Ruby and Ruby-Dev_kit
Install ruby from : http://rubyinstaller.org/
Download the ruby dev kit from : http://rubyinstaller.org/downloads
Extract it into a separate directory, and follow instructions here : https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
The following steps for ruby dev kit installation seemed to be sufficient :
cd <install_dir>
ruby dk.rb init
ruby dk.rb install

2. Install cf-uaac.gem
Download cf-uaac.gem from : https://rubygems.org/gems/cf-uaac
To install :
gem install cf-uaac.gem

3. Test - should get a list of all options :
uaac help
Reply all
Reply to author
Forward
0 new messages