This repository was archived by the owner on Jan 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Garden development workstation setup
Marc Schunk edited this page Jul 10, 2015
·
10 revisions
- New machine with Pivotal Dev Image
- Upgrade MacOS
- Upgrade brew packages
- Run
brew doctorand fix any problems that might occur brew updatebrew install caskroom/cask/brew-cask
- Run
- Slack from AppStore (preferences -> open at login)
- FlyCut from AppStore (preferences -> open at login)
- ShiftIt (preferences -> open at login)
- Divvy (preferences -> open at login)
- tmate
- boot2docker
- Source tree
- sublime
brew cask install sublime-text- Add package manager
- Install gosublime package see install section
- luan-vim
git clone http://github.com/luan/vimfiles.git ~/.vim~/.vim/install
- IntelliJ
- Download IntelliJ
- Follow instructions to setup an IntelliJ project
-
gem install git-duet -
Add
~/.git-authorsauthors: aa: Alex Alpha; alpha bb: Barbara Beta; babete email: domain: pivotal.io email_addresses: bb: beta@otheremail.com -
Add git aliases in
~/.bash_it/lib/custom.bash:alias duet='git duet --global' solo='git solo --global' -
Replace the git ci alias in
~/.gitconfigfile forci = duet-commit
-
brew install go -
mkdir $HOME/go -
Update
~/.bash_it/lib/custom.bashwith the following:export GOPATH=$HOME/go export GOROOT=/usr/local/opt/go/libexec export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOROOT/bin
Add goto and workto by placing following into ~/.bash_it/lib/custom.bash:
function goto {
local p
local f
for p in `echo $GOPATH | tr ':' '\n'`; do
f=`find ${p}/src -type d -not -path '*/.*' | grep "${1}" | awk '{ print length, $0 }' | sort -n | cut -d" " -f2- | head -n 1`
if [ -n "$f" ]; then
cd $f
return
fi
done
workto "$@"
}
function workto {
local p
local f
f=`find ~/workspace -type d -not -path '*/.*' | grep "${1}" | awk '{ print length, $0 }' | sort -n | cut -d" " -f2- | head -n 1`
if [ -n "$f" ]; then
cd $f
return
fi
}
-
Install direnv:
git clone https://github.com/zimbatm/direnv cd direnv make install -
Add
eval "$(direnv hook bash)"to~/.bash_it/lib/custom.bash
cd ~/workspacegit clone https://github.com/concourse/concourse- Go to garden concourse & click on the concourse tab and select the latest build. Find the version of concourse that has been deployed e.g.:
concourse-0.34.0.tgz. cd concourse && git co v0.34.0git submodule update --init --recursivedirenv allowcd src/github.com/concourse/flygo buildcp fly ~/go/bin
git clone https://github.com/cloudfoundry-incubator/garden-linux $GOPATH/src/github.com/cloudfoundry-incubator/garden-linuxgo get github.com/tools/godepcd $GOPATH/src/github.com/cloudfoundry-incubator/garden-linuxgodep restorego install github.com/onsi/ginkgo/ginkgo- Run the unit tests by
goto garden-linux && ginkgo -r - Run the set the ATC env var as described in the scripts/remote-fly
cd ~/workspace && git clone https://github.com/cloudfoundry-incubator/garden-linux-releasecd garden-linux-release && git submodule update --init --recursivesudo chown -R pivotal:staff /usr/local/Library/Tapsbrew cask uninstall vagrantbrew uninstall phinze/cask/brew-caskbrew install caskroom/cask/brew-caskbrew cask install vagrantgem install bosh_cli --no-ri --no-rdoc -v 1.2652.0vagrant plugin install vagrant-boshvagrant upbrew cask install vagrant-manager- Follow API exercise to show garden is running.