Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cloud Foundry: BOSH

Cloud Foundry: BOSH

Altoros Workshop, Minsk

Aliaksandr Lomau

November 05, 2014
Tweet

More Decks by Aliaksandr Lomau

Other Decks in Technology

Transcript

  1. BOSH-LITE Change Vagrantfile: config.vm.provider :virtualbox do |v, override| v.customize ["modifyvm",

    :id, "--memory", "4096"] v.customize ["modifyvm", :id, "--cpus", "2"] end YOUR RAM
  2. https://github.com/cloudfoundry/bosh-lite BOSH-LITE Execute: git clone -b workshop https://github.com/Altoros/bosh-lite.git cd bosh-lite

    vagrant up —provider=virtualbox ./bin/add-route https://github.com/Altoros/bosh-lite Official repo: We use:
  3. SAY “HELLO, BOSH!” Execute: bosh target 192.168.50.4 lite bosh status

    echo “Hello, BOSH!” vagrant ssh ps aux #:) gem install bosh_cli --no-ri --no-rdoc If you don’t have BOSH CLI yet:
  4. BOSH-LITE Our way: # upload stemcell wget http://workshop.altoros.com/latest-bosh-stemcell-warden.tgz bosh upload

    stemcell latest-bosh-stemcell-warden.tgz # upload CF release wget http://workshop.altoros.com/boshrelease-cf-191.tgz bosh upload release boshrelease-cf-191.tgz # see results bosh releases bosh stemcells Easy way to install Cloud Foundry: ./bin/provision_cf (source)
  5. CF-RELEASE • Configs • Jobs • Packages • Release Manifests

    • Blobs • Manifest Templates • and even more … (hidden local folders)
  6. SAY “HELLO, SPIFF” Execute: # install spiff go get github.com/cloudfoundry-incubator/spiff

    # or brew tap xoebus/homebrew-cloudfoundry brew install spiff https://github.com/cloudfoundry-incubator/spiff Official repo:
  7. MANIFEST? LET’S GENERATE IT! Execute: # upload stemcell cd cf-release

    CF_RELEASE_DIR=$PWD ./bosh-lite/make_manifest (source) ./bosh-lite/make_manifest (source) ./generate_deployment_manifest
  8. BOSH STEMCELL How to build your stemcell from an image:

    link to gist How to build custom stemcell: bosh-stemcell builder
  9. Execute: cf api --skip-ssl-validation https://api.10.244.0.34.xip.io cf auth admin admin cf

    create-org me cf target -o me cf create-space development cf target -s development LETS TEST IT!
  10. Execute: cf api --skip-ssl-validation https://api..xip.io cf auth admin admin cf

    create-org me cf target -o me cf create-space development cf target -s development LETS TEST IT!