allomov
11/4/2014 - 12:41 PM

Workshop notes

Workshop notes

sudo wget https://vagrantcloud.com/cloudfoundry/boxes/bosh-lite/versions/21/providers/virtualbox.box

curl --progress-bar http://bosh-jenkins-artifacts.s3.amazonaws.com/bosh-stemcell/warden/latest-bosh-stemcell-warden.tgz > latest-bosh-stemcell-warden.tgz
mkdir ~/workshop && cd ~/workshop

wget http://workshop.altoros.com/cf-release-with-blobs.tar.gz  # ~2m
tar -xzvf cf-release-with-blobs.tar.gz # ~3m

git clone -b workshop https://github.com/Altoros/bosh-lite.git
cd bosh-lite
vagrant up --provider=virtualbox  # 2m
wget http://workshop.altoros.com/latest-bosh-stemcell-warden.tgz   # 4sec



# install RVM and Ruby 
# http://rvm.io/rvm/install
curl -sSL https://get.rvm.io | bash
source ~/.bashrc
rvm install 1.9.3
rvm use --create 1.9.3@workshop
gem install bosh_cli --no-ri --no-rdoc

sudo apt-get install git wget

# install VirtualBox 
# https://help.ubuntu.com/community/VirtualBox/Installation
sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free' > /etc/apt/sources.list.d/virtualbox.list" && wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install virtualbox-4.3 dkms

# install Vagrant
# https://www.vagrantup.com/downloads
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
sudo dpkg -i vagrant_1.6.5_x86_64.deb
rm vagrant_1.6.5_x86_64.deb

# install go lang 
# https://code.google.com/p/go-wiki/wiki/Ubuntu
sudo apt-get install golang
echo "export GOPATH=$HOME/go" >> ~/.bashrc
echo "export PATH=$PATH:$GOPATH/bin" >> ~/.bashrc
source ~/.bashrc
mkdir -p $GOPATH


# install CF CLI
# download and install packages from https://github.com/cloudfoundry/cli