GithubHelp home page GithubHelp logo

pombredanne / bosh-lite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry-attic/bosh-lite

0.0 1.0 0.0 3.4 MB

A lite development env for BOSH

License: Apache License 2.0

Shell 100.00%

bosh-lite's Introduction

BOSH Lite

A local development environment for BOSH using Warden containers in a Vagrant box.

This readme walks through deploying Cloud Foundry with BOSH Lite. BOSH and BOSH Lite can be used to deploy just about anything once you've got the hang of it.

Install BOSH Lite

Prepare the Environment

  1. Install latest version of bosh_cli.

    gem install bosh_cli
    

    Refer to BOSH CLI installation instructions for more information and troubleshooting tips.

  2. Install Vagrant.

    Known working version:

    $ vagrant --version
    Vagrant 1.6.3
    
  3. Clone this repository.

Install and Boot a Virtual Machine

Installation instructions for different Vagrant providers:

Using the Virtualbox Provider

  1. Install Virtualbox

    Known working version:

    $ VBoxManage --version
    4.3.14r95030
    

    Note: If you encounter problems with VirtualBox networking try installing Oracle VM VirtualBox Extension Pack as suggested by Issue 202.

  2. Start Vagrant from the base directory of this repository, which contains the Vagrantfile. The most recent version of the BOSH Lite boxes will be downloaded by default from the Vagrant Cloud when you run vagrant up. If you have already downloaded an older version you will be warned that your version is out of date. You can use the latest version by running vagrant box update.

    vagrant up --provider=virtualbox
    
  3. Target the BOSH Director and login with admin/admin.

    # if behind a proxy, exclude this IP by setting no_proxy (xip.io is introduced later)
    $ export no_proxy=192.168.50.4,xip.io
    
    $ bosh target 192.168.50.4 lite
    Target set to `Bosh Lite Director'
    
    $ bosh login
    Your username: admin
    Enter password: *****
    Logged in as `admin'
    
  4. Add a set of route entries to your local route table to enable direct Warden container access every time your networking gets reset (e.g. reboot or connect to a different network). Your sudo password may be required.

    bin/add-route
    

Customizing the local VM IP

The local VMs (virtualbox, vmware providers) will be accessible at 192.168.50.4. To change this IP, uncomment the private_network line in the appropriate provider and change the IP address.

  config.vm.provider :virtualbox do |v, override|
    # To use a different IP address for the bosh-lite director, uncomment this line:
    # override.vm.network :private_network, ip: '192.168.59.4', id: :local
  end

Deploy Cloud Foundry

Misc

Troubleshooting

  • Starting over again is often the quickest path to success; you can use vagrant destroy from the base directory of this project to remove the VM.

Manage your local boxes

We publish pre-built Vagrant boxes on Amazon S3. It is recommended to use the latest boxes. To do so get a latest copy of the Vagrantfile from this repo and run vagrant up.

bosh-lite's People

Contributors

adamstegman avatar ajackson avatar allomov avatar amitkgupta avatar calebamiles avatar cdavisafc avatar chou avatar cppforlife avatar datianshi avatar drnic avatar dsboulder avatar gerhard avatar jfoley avatar kaixiang avatar krishicks avatar leoross avatar mariash avatar maxbrunsfeld avatar michaelklishin avatar mikegehard avatar mkocher avatar mmb avatar phanle avatar squeedee avatar sykesm avatar thansmann avatar tjarratt avatar vito avatar xchoi avatar zaksoup avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.