How to install CloudFoundry on a local server

I know that CF is designed to work in several cloud services for one unified representation of a microservice application. However, I would like to install and run a cloud caster on my local CentOS server. In other sources, I would like to configure my own “cloud” on a single server running on CF as a microservice-based application container.

How to install CF on my local server so that I can later deploy some microservices on the local server for educational purposes, for testing microservice ping-pong?

+5
source share
5 answers

CF setup (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 who just tried CF, I would recommend PCF Dev.

The easiest way is to install CF using BOSH Lite. You will probably need 16 GB of RAM.

Install a tramp

gem install vagrant 

Download BOSH Lite

 git clone https://github.com/cloudfoundry/bosh-lite 

Launch BOSH Lite

 cd bosh-lite vagrant up --provider=virtualbox 

Target bosh lite

 bosh target 192.168.50.4 lite 

username / password: admin / admin

Add the necessary routes

 bin/add-route 

Download Stemcell

 wget https://s3.amazonaws.com/bosh-warden-stemcells/bosh-stemcell-3147-warden-boshlite-ubuntu-trusty-go_agent.tgz 

Install BOSH CLI

 gem install bosh_cli --no-ri --no-rdoc 

Download the stem cell that BOSH Lite CF uses

 bosh upload stemcell bosh-stemcell-3147-warden-boshlite-ubuntu-trusty-go_agent.tgz 

Download CF

 git clone https://github.com/cloudfoundry/cf-release.git --recursive 

Generate CF BOSH Lite manifest

 scripts/generate-bosh-lite-dev-manifest 

Create, Download, and Deploy Release

 bosh create release --force && bosh upload release && bosh -n deploy 

^^^ It will take some time ^^^


Work with CF

Install CF CLI
See instructions here:
https://github.com/cloudfoundry/cli

Login to CF

 cf login -a https://api.bosh-lite.com --skip-ssl-validation -u admin -p admin 

Create an organization

 cf create-org org 

Create space

 cf create-space space -o org 

Target organization and space

 cf target -o org -s space 

Push app

 cf push 

That should do it!

+9
source

The easiest way is to use the new PCF Dev . This works well on machines with at least 8 GB of memory. Download and run it as described in the documentation

In a few minutes you have a full working CF on your local machine with MySQL, Redis and RabbitMQ as services on the market. There are currently no cloud services application manager or Spring services, but they will be added in future releases as well.

+3
source

It’s just the head that the workflow for configuring bosh-lite has changed: http://bosh.io/docs/bosh-lite.html

I also suggest using cf-deployment instead of cf-release.

+1
source

The easiest way to enjoy Stackato locally is to check out the Stackato Cloud Foundry Micro Cloud - http://docs.stackato.com/admin/setup/microcloud.html . You just need a virtual box, then load the MicroCloud virtual machine, run it in VirtualBox and voila, you can start the deployment of microservices.

With a decent internet connection, you will enjoy Cloud Foundry for 5 minutes :)

0
source

To deploy CF on a single server for educational purposes, you can try deploying CloudFoundry using BOSH Lite , as described in the docs. Your server must have at least 16 GB of RAM.

0
source

Source: https://habr.com/ru/post/1247030/


All Articles