Skip to content

Instantly share code, notes, and snippets.

@tamirko
Last active May 29, 2016 12:54
Show Gist options
  • Save tamirko/8a2a22599c7e4a711501f8c8af185a11 to your computer and use it in GitHub Desktop.
Save tamirko/8a2a22599c7e4a711501f8c8af185a11 to your computer and use it in GitHub Desktop.
install_xap_deployment_tool.sh
#!/bin/bash
sudo apt-get install -y npm
sudo apt-get install -y git
sudo apt-get install -y unzip
sudo apt-get install -y gcc
sudo apt-get install -y python-pip
sudo apt-get install -y python-virtualenv
sudo apt-get install -y python-dev
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv
sudo apt-get install -y build-essential libssl-dev
curl https://raw.githubusercontent.com/creationix/nvm/v0.12.0/install.sh | sudo bash
source ~/.profile
sudo chown -R `whoami`:`whoami` ~/.nvm
git clone https://github.com/tamirko/xap-deployment-tool.git
cd xap-deployment-tool/
mkdir -p dev
mkdir -p backend/dev
mkdir ~/deployment_tool_envs/
mkdir ~/cfy_versions_root
mkdir ~/dt_executions
nvm install
npm install -g grunt-cli
npm install -g bower
npm run clean_all
# Now edit ./app/views/directives/deploy_console_output.html and replace
# the IP address, with the Cloudify manager IP address
# Now edit ./app/scripts/controllers/DatacentredNodeTemplate.js and replace
# the IP address, with the Cloudify manager IP address
# $scope.data.existingMngrIPaddress="YOUR_CFY_MANAGR_PUBLIC_IP_ADDRESS";
# Open ports 8090, 3000, 80, 22, 8100, 8101,50003 and 35829 , 8100-65000
#In the manager VM, change /opt/cloudify-ui/styles/1ae750be.main.css as follows :
# Change the layout and main-content classes : left:6px !important and right:6px !important"
# .layout .main-content{ ..........;left:6px;right:6px;}
exit
nohup grunt serve > /dev/null 2>&1 &
# Then browse to
http://IP_ADDRESS:8090/#/deploy/datacentred/node-template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment