Cloud Foundry v2 installer with Nise BOSH and Vagrant
Shell Ruby
Latest commit e2817f3 Jun 18, 2016 @yudai committed on GitHub Merge pull request #163 from tchughesiv/master
Buildpack additions & java offline

Cloud Foundry v2 Nise Installer

Devbox Installer with Nise BOSH

CF Nise Installer is a set of scripts that installs a Cloud Foundry v2 instance to your single machine or Vagrant VM. You can build your own 'devbox' quickly with a single command with this installer.

CF Nise Installer is based on cf-release by Pivotal, Nise BOSH by NTT Laboratory.


This installer is maintained mainly for testing cf-release on a baremetal environemnt. If you just want to try Cloud Foundry, bosh-lite may be a better solution for you.

When ask a question about Cloud Foundry build by this installer at vcap-dev, please describe that you are uing cf-nise-installer in your post. That makes it easier to isolate your problem and to answer your question. If the problem you got is certainly caused by this installer, please do not post to vcap-dev and submit an issue to this repository.

Building Devbox on Single Server

This section shows you how to install CF components to your server.

If you want to build a devbox on a Vagrant VM, skip this section and see the next section.


  • Ubuntu 14.04 64bit (Trusty)
    • Do NOT install RVM to avoid conflicting with RBenv
  • 8GB+ free HDD space
  • 2GB+ memory
    • m1.medium or larger instance is recommended on AWS

Installing Cloud Foundry Components

Run the commands below on your server:

sudo apt-get install curl
bash < <(curl -s -k -B${INSTALLER_BRANCH:-master}/scripts/

The script installs everything necessary to your devbox. This command may take a couple of hours at first run.

You need to restart your server once after the installation is completed.

Launching Processes

You can start Cloud Foundry by running the following command in the cf_nise_installer directory cloned by the script:


This command launches a Monit process and then start up all monit jobs installed by Nise BOSH.

You can also manually manage the processes with the Monit command:

# Start Monit
sudo /var/vcap/bosh/bin/monit
# Launch `all` processes
sudo /var/vcap/bosh/bin/monit start all
# See status
sudo /var/vcap/bosh/bin/monit status
sudo /var/vcap/bosh/bin/monit summary # shorter
# Stop `all` processes
sudo /var/vcap/bosh/bin/monit stop all

Confirm all the processes shown by monit summary is indicating running. It takes a few minutes to initialize all processes.

Update Existing Devbox

To update your existing Devbox, you can use scripts in the scripts directory. You don't need to execute the script for this purpose.


    • Runs the following scripts in order

    • Installs Ruby binaries with Rbenv and the cf command gem
    • If .rbenv directory exists in your homedirectory, this script do nothing

    • Clones the nise_bosh repository
    • When the nise_bosh directory is not empty, this script do nothing

    • Clones the cf-release repository
    • When the cf-release directory is not empty, this script do nothing

    • Run the init command of Nise BOSH

    • Installs cf-release jobs and packages with Nise BOSH

    • Invokes a Monit process and CF processes

    • Stop all CF processes

When run these scrips, be sure your are in the cf_nise_installer directory and not in scripts directory.

Notes for Updating Devbox

These scripts do not automatically update existing files in the working directory such as the cf-release and nise_bosh directories. This means once you have executed the installer, you need to manually update files in your working directory to update your devbox. If you just want to update your debox to the latest version of cf-release, it is the easiest way to delete your cf_nise_installer directory and run the script.

Environment Variables

You can customize your installation using environment variables. Note that variables taks effect only when script is not skipped. For example, the variable CF_RELEASE_URL is used only when the cf-release directory is empty.

Name Description Used in Default
INSTALLER_URL URI for cf_nise_installer
INSTALLER_BRANCH Branch/Revision for cf_nise_installer master
CF_RELEASE_URL URI for cf-release nil ( is set to submodule)
CF_RELEASE_BRANCH Branch/Revision for cf-release nil (certain stable revision is set to submodule)
CF_RELEASE_USE_HEAD Create a dev release with the head of the branch no (set yes to enable)
NISE_BOSH_REV Git revision specifier [note] of nise_bosh repo nil (currently checked-out revision)
NISE_IP_ADDRESS IP address to bind CF components Automatically detected using ip command
NISE_DOMAIN Domain name for the devbox nil (<ip_address>
NISE_PASSWORD Password for CF components c1oudc0w

[note]: Do not use any relative revision specifier from HEAD (e.g. HEAD~, HEAD~10, HEAD^^). Please use an absolute revision specifier (e.g. 123abc, develop). You may use a relative revision specifier from an absolute revision specifier (e.g. master~~).

Build Devbox with Vagrant

You can create a devbox VM quickly with a VM using Vagrant.


  • Vagrant 1.4 or later
  • Ruby 1.9.3-p484
  • 8GB+ free HDD space
  • 2GB+ free memory

Launch Vagrant VM

Clone this repository and run the command below.

vagrant up

Your working directory will be mount at /vagrant.