blob: d874d3c37cf768a0deb6950f96ca0a7105c2fc28 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001
2# Standard update + upgrade dance
3yum check-update
4yum update -y
5
6# Install build tools
7yum groupinstall 'Development Tools' -y
8yum install openssl-devel -y
9yum install glibc-static -y
10
11# Install jdk and maven
12yum install -y java-1.8.0-openjdk-devel
13
Dave Barachb10277d2016-02-02 10:57:15 -050014# Install EPEL
15yum install -y epel-release
16
17# Install components to build Ganglia modules
18yum install -y apr-devel
19yum install -y --enablerepo=epel libconfuse-devel
20yum install -y --enablerepo=epel ganglia-devel
21
Ed Warnickecb9cada2015-12-08 15:45:58 -070022# Load the uio kernel module
23modprobe uio_pci_generic
24
25echo uio_pci_generic >> /etc/modules-load.d/uio_pci_generic.conf
26
27# Setup for hugepages using upstart so it persists across reboots
28sysctl -w vm.nr_hugepages=1024
29echo "vm.nr_hugepages=1024" >> /etc/sysctl.conf
30mkdir -p /mnt/huge
31echo "hugetlbfs /mnt/huge hugetlbfs defaults 0 0" >> /etc/fstab
32mount /mnt/huge
33
34# Setup the vpp code
35cd ~vagrant/
36sudo -u vagrant mkdir git
37cd git/
38
Keith Burns (alagalah)d5201c82016-01-31 21:15:27 +010039# Check if git exists and remove it before attempting clone, else clone ineffective when "reload --provision"
40[ -d vpp ] && rm -rf vpp
Ed Warnickecb9cada2015-12-08 15:45:58 -070041sudo -H -u vagrant git clone /vpp
42cd vpp
43
44# Initial vpp build
45if [ -d build-root ]; then
46 # Bootstrap vpp
47 cd build-root/
48 sudo -H -u vagrant ./bootstrap.sh
49
50 # Build vpp
51 sudo -H -u vagrant make PLATFORM=vpp TAG=vpp_debug install-packages
52 cd ~vagrant/
53 cat /vagrant/README
54fi