Last active
August 29, 2015 14:20
-
-
Save pcolazurdo/88bb3067ac7184964e1b to your computer and use it in GitHub Desktop.
Installing Netflix's Vector on Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# General notes: | |
# As stated on Vector's page, the tool needs PCP => 3.10 so at the moment you need to install from sources. This tries to do that. | |
# Installing PCP from sources has some issues with library paths (not enough time to analyze that) so you'll need to touch LD_LIBRARY_PATH or ld.conf whatever you prefer | |
# PCPWeb (pmweb) is needed by Vector (it's not clear enough in the documentation) so you'll need to open up port 44323 - BE SURE TO FIREWALL IT! | |
# If you are sure you want to autostart the services, don't forget to touch init.d or systemd or whatever you're using for starting the services as needed. | |
# General Installations | |
sudo yum install -y git | |
sudo yum groupinstall -y "Development tools" | |
# Install PCP | |
cd | |
git clone git://git.pcp.io/pcp | |
cd pcp | |
qa/admin/check-vm | cut -d[ -f2 | cut -d" " -f1 | grep -v QA | grep -v Warn | grep -v Err | grep -v Miss | cut -d] -f1 | xargs sudo yum install -y | |
sudo yum install -y ed perl-Spreadsheet-WriteExcel bind-utils | |
cd pcp | |
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var | |
make | |
sudo groupadd -r pcp | |
sudo useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp | |
sudo makeinstall | |
# Manually export LD_LIBRARY_PATH or touch ld.conf.d | |
sudo service pmcd start | |
sudo service pmcd status | |
sudo service pmwebd start | |
pcp | |
#check if pcp web services are working: | |
sudo netstat -anp | grep ':44323' | |
cd | |
# Install Node & npm & bower & gulp | |
sudo curl -sL https://rpm.nodesource.com/setup | sudo bash - | |
sudo yum install -y nodejs | |
sudo npm install -g bower | |
sudo npm install -g gulp | |
# Install vector | |
git clone -b stable https://github.com/Netflix/vector.git | |
cd vector/ | |
npm install | |
bower install | |
gulp webserver | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "chef/centos-7.0" | |
config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
config.vm.network "forwarded_port", guest: 44323, host: 44323 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment