30 seconds to running Cloud Foundry app (v3)

Posted by scottk on January 13, 2016 in Ramblings |

cloud-foundry-logoIt’s been a couple of years since I did an update to the up and running with Cloud Foundry post. Things have change quite a bit under the covers, but the up and running is nearly the same. So here what it looks like:

First you won’t be doing a gem install of cf, instead you should go here and grab the installer package since it’s now done in go.

You should also have signed up for an account with Pivotal Web Services here or another CF provider’

In this demo I’ll use the php buildpack which is going to let me just write and index.html and view that

Once you’ve got those two things done a deploy looks like this

 


scottkahler$ mkdir demo
scottkahler$ cd demo/
scottkahler$ echo 'This is a test' > index.html
scottkahler$ cf push -b https://github.com/cloudfoundry/php-buildpack.git demo30sec
Creating app demo30sec in org scottk-org / space development as scottk@domain.com...
OK
Creating route demo30sec.cfapps.io...
OK
Binding demo30sec.cfapps.io to demo30sec...
OK
Uploading demo30sec...
Uploading from: /Users/scottkahler/cf_30/demo
149, 1 files
OK
Starting app demo30sec in org scottk-org / space development as scottk@domain.com...
OK
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
1 of 1 instances running
App started
Showing health and status for app demo30sec in org scottk-org / space development as scottk@domain.com...
OK
requested state: started
instances: 1/1
usage: 1G x 1 instances
urls: demo30sec.cfapps.io
state since cpu memory disk
#0 running 2016-01-13 05:58:12 PM 0.0% 0 of 1G 0 of 1G

 

 

And BAM! Once again I’ve got a running app.

Copyright © 2006-2024 SimpIT.com All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.