This project help you easily create a Cloud Foundry environment that runs Diego cells on top of Mesos. This is done using the cloufoundry-mesos project, which modifies the Diego auctioneer process to be a Mesos Framework.
For OS X developers, these can all be installed via Homebrew. You will want to
run brew tap xoebus/homebrew-cloudfoundry
to get access to spiff and
brew tap pivotal/tap
to get the cloudfoundry-cli
package.
These scripts will create 3 VMs. A bosh-lite VM that uses 6GB RAM, and 2 Mesos VMs that are 2.5GB each. Total project will need a machine with at least 11GB RAM, and about 10GB of disk space.
-
Install Requirements
-
Clone this repository
git clone clone https://github.com/emccode/vagrant
cd vagrant/cloudfoundry-mesos
- Run script to deploy CloudFoundry Diego via bosh-lite
./cfdiego.sh
- Run Script to deploy Mesos nodes and register CF as Framework
./cfonmesos.sh
-
Visit Mesos GUI at http://192.158.50.5:5050
-
Deploy a CF app using
cf push
git clone https://github.com/jianhuiz/cf-apps
cd cf-apps/hello
vi manifest.yml
cf push
Note: you will want modify manifest.yml to use less RAM (128M is good) and to set
the domain as bosh-lite.com
.
When running the scripts, if any of the git clone
steps hang, it is okay to Ctrl-C
the script and re-run.
To stop the Vagrant VMs, you can run vagrant destroy
from either the bosh-lite
directory
or the ../playa-mesos
directory.
If you want to add an additional Mesos Slave, you can modify ../playa-mesos/config.json
with the details and use vagrant up
to do so.