Skip to content

Instantly share code, notes, and snippets.

@fastnsilver
Last active January 28, 2019 23:29
Show Gist options
  • Save fastnsilver/242fe4de917879594db54eed88c643ea to your computer and use it in GitHub Desktop.
Save fastnsilver/242fe4de917879594db54eed88c643ea to your computer and use it in GitHub Desktop.

Get Started

@see http://stackoverflow.com/questions/36596743/how-to-install-cloudfoundry-on-local-server

Pre-requisites

To get tools installed

./bosh-me.sh

BOSH Lite

Bring up VM

git clone git@github.com:cloudfoundry/bosh-lite.git
cd bosh-lite
vagrant up --provider=virtualbox

Target BOSH Director and Log in

export no_proxy=xip.io,192.168.50.4
bosh target 192.168.50.4 lite
admin/admin

Add routing

bin/add-route

Cloud Foundry

Download CF stemcell

Upload the stemcell that BOSH Lite CF uses

bosh upload stemcell ~/Downloads/bosh-stemcell-3363.19-warden-boshlite-ubuntu-trusty-go_agent.tgz

Download CF

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

Generate the CF BOSH Lite manifest

cd cf-release
scripts/generate-bosh-lite-dev-manifest

Create, upload and deploy release

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

CLI

Login to CF

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

Create an org

cf create-org org

Create a space

cf create-space space -o org

Target org and space

cf target -o org -s space

Push App

cf push
#!/bin/bash
# A curated collection of software to prep a BOSH installation with CF CLI via Homebrew
# @author Chris Phillipson
# @lastUpdated 2017-04-24
# @version 1.0
# @see http://brew.sh/, https://caskroom.github.io/, and https://github.com/cloudfoundry/homebrew-tap
set -e
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Caskrooms
brew tap caskroom/cask
brew tap cloudfoundry/tap
brew tap caskroom/versions
brew tap xoebus/homebrew-cloudfoundry
# Declare installation packages
brews=( "cf-cli" "go" "maven" "node" "wget" "git" "python3" "ruby" "spiff" )
casks=( "vagrant" "virtualbox" )
# Install Java
brew cask install java
# Install packages
for i in "${brews[@]}"
do
brew install $i
done
for i in "${casks[@]}"
do
brew cask install $i
done
gem install bosh_cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment