Skip to content

Instantly share code, notes, and snippets.

@skizhak
Last active August 3, 2016 00:28
Show Gist options
  • Save skizhak/955fa9c88f17724713937119b5e91b92 to your computer and use it in GitHub Desktop.
Save skizhak/955fa9c88f17724713937119b5e91b92 to your computer and use it in GitHub Desktop.
setup mac for contrail web ui dev sandbox
#Installing brew will make it easy for most of the packages.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install redis
brew install wget
brew install n
#install Node.JS
n 0.10.35
sudo easy_install pip
sudo pip install lxml
mkdir sandbox
cd sandbox/
git clone https://github.com/Juniper/contrail-web-core.git
git clone https://github.com/Juniper/contrail-webui-third-party.git
git clone https://github.com/Juniper/contrail-web-controller.git
git clone https://github.com/Juniper/contrail-web-server-manager.git
git clone https://github.com/Juniper/contrail-web-storage.git
cd contrail-web-core
make fetch-pkgs-dev
#Update config/config.global.js with respective ip address.
#Normally you'll point jobServer and redis to your local machine and other IP with your Contrail Installation.
#For each feature, update the feature pkg path in config/config.global.js
#By default in config, only webController is given as featurePkg
#Similarly add config.featurePkg.serverManager and config.featurePkg.webStorage if you need those as well.
#To build web controller
make dev-env REPO=webController
#To build all the repos
make dev-env REPO=webController,serverManager,webStorage
#Similarly to create the test-environment on each repo.
make test-env REPO=webController,serverManager,webStorage
#start redis
redis-server /usr/local/etc/redis.conf
start servers
node jobServerStart.js
node webServerStart.js
#access http://localhost:8080
#Setting up git review
#install git review
pip install git-review
#create your account in http://review.opencontrail.org/
#add your ssh public key id_rsa.pub to review.opencontrail.org
#For each repo add gerrit remote
# git remote add gerrit ssh://<username>@review.opencontrail.org:29418/Juniper/<repo-name>.git
# once commiting changes issue git review.
@ZheyangSong
Copy link

Hi, I revised this doc a little bit and made it be displayed as markdown file. Would you like to merge my changes (https://gist.github.com/ZheyangSong/4a364bd1c89241ad2c7897030759e90d) into your original gist? (So upset that the gist doesn't have a PR feature for the moment) Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment