I know that CF is made for running on multiple cloud services for one unified view of an microservice app. However, I would like to install and run the cloud foundry on my CentOS local server. In other wourds I would like to setup my private "cloud" on one server running CF as a microservice-based app container.
How can I install CF on my local server so that later I could deploy some microservices on the local server for educational purposes, for microservice ping pong testing?
To deploy CF on a single server for educational purposes you may want to try out deploying CloudFoundry using BOSH Lite as described in the docs. Your server should at least have 16GB of RAM.
Setup CF (Cloud Foundry)
** UPDATE ** Probably the easiest way is PCF Dev https://pivotal.io/pcf-dev BOSH Lite gives you more options, but for most people just trying out CF I would recommend PCF Dev.
Easiest way is to deploy CF using BOSH Lite. You will probably need 16gb of ram.
Install Vagrant
Download BOSH Lite
Start up BOSH Lite
Target Bosh Lite
username/password: admin/admin
Add needed routes
Download the Stemcell
Install BOSH CLI
Upload the stemcell that BOSH Lite CF uses
Download CF
Generate the CF BOSH Lite manifest
Create, Upload and Deploy release
^^^ This will take awhile ^^^
Work with CF
Install CF CLI
See instructions here:
https://github.com/cloudfoundry/cli
Login to CF
Create an org
Create a space
Target org and space
Push App
That should do it!
The easiest way is to use the new PCF Dev. This runs well on machines with at least 8GB of RAM. Download and start it as described in the documentation
After a few minutes you have a full working CF on your local machine having MySQL, Redis and RabbitMQ as marketplace services. Currently Apps Manager or Spring Cloud Services are missing but according to here these will be added in future releases as well.
The simplest way to enjoy Stackato locally is to check Stackato Cloud Foundry Micro Cloud - http://docs.stackato.com/admin/setup/microcloud.html. You just need a virtualbox, then download the MicroCloud VM, run it in VirtualBox and voila you can start deploying microservices.
With a decent Internet connection, you will be enjoying Cloud Foundry in like 5 minutes :)
Just a heads up that the workflow for setting up a bosh-lite has changed: http://bosh.io/docs/bosh-lite.html
I'd also suggest using cf-deployment instead of cf-release.