blob: 72ee2460ea16c487fc877d5f88cb53af05c3edd1 [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
Keith Burns (alagalah)525d5952016-02-19 06:18:46 +010011# Install development tools
12yum install gdb -y
13yum install gdbserver -y
14
Ed Warnickecb9cada2015-12-08 15:45:58 -070015# Install jdk and maven
16yum install -y java-1.8.0-openjdk-devel
17
Dave Barachb10277d2016-02-02 10:57:15 -050018# Install EPEL
19yum install -y epel-release
20
21# Install components to build Ganglia modules
22yum install -y apr-devel
23yum install -y --enablerepo=epel libconfuse-devel
24yum install -y --enablerepo=epel ganglia-devel
25
Dave Barachf1bb0472016-02-02 16:59:04 -050026# PCIutils
27yum install -y pciutils
28
Ed Warnickecb9cada2015-12-08 15:45:58 -070029# Load the uio kernel module
30modprobe uio_pci_generic
31
32echo uio_pci_generic >> /etc/modules-load.d/uio_pci_generic.conf
33
34# Setup for hugepages using upstart so it persists across reboots
35sysctl -w vm.nr_hugepages=1024
36echo "vm.nr_hugepages=1024" >> /etc/sysctl.conf
37mkdir -p /mnt/huge
38echo "hugetlbfs /mnt/huge hugetlbfs defaults 0 0" >> /etc/fstab
39mount /mnt/huge
40
41# Setup the vpp code
42cd ~vagrant/
43sudo -u vagrant mkdir git
44cd git/
45
Keith Burns (alagalah)d5201c82016-01-31 21:15:27 +010046# Check if git exists and remove it before attempting clone, else clone ineffective when "reload --provision"
47[ -d vpp ] && rm -rf vpp
Ed Warnickecb9cada2015-12-08 15:45:58 -070048sudo -H -u vagrant git clone /vpp
49cd vpp
50
51# Initial vpp build
52if [ -d build-root ]; then
53 # Bootstrap vpp
54 cd build-root/
55 sudo -H -u vagrant ./bootstrap.sh
56
57 # Build vpp
58 sudo -H -u vagrant make PLATFORM=vpp TAG=vpp_debug install-packages
59 cd ~vagrant/
60 cat /vagrant/README
61fi