summaryrefslogtreecommitdiffstats
path: root/fuel-plugin-vsperf/vagrant
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2016-05-25 14:50:20 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-25 14:50:20 +0000
commit5e3b6ae0427963520357453728411327ac8efafe (patch)
tree78bd0b78bc32566b0dbcc5ad8520740d0bc07caa /fuel-plugin-vsperf/vagrant
parent2e259679732ed4e0464992b4cae04a4cf4d88000 (diff)
parent5df5198c8b178debaf0e7190a42fa6cc2851b633 (diff)
Merge "Rebase to fuel 9.0 and add vagrant based build and enhance some scripts"
Diffstat (limited to 'fuel-plugin-vsperf/vagrant')
-rw-r--r--fuel-plugin-vsperf/vagrant/Vagrantfile21
-rwxr-xr-xfuel-plugin-vsperf/vagrant/build_fuel_plugin.sh11
2 files changed, 32 insertions, 0 deletions
diff --git a/fuel-plugin-vsperf/vagrant/Vagrantfile b/fuel-plugin-vsperf/vagrant/Vagrantfile
new file mode 100644
index 00000000..d83ac4cc
--- /dev/null
+++ b/fuel-plugin-vsperf/vagrant/Vagrantfile
@@ -0,0 +1,21 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
+VAGRANTFILE_API_VERSION = "2"
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+
+ config.vm.box = "trusty-server-cloudimg-amd64"
+ config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
+
+ config.vm.define "fuel" do | h |
+ h.vm.host_name = "fuel"
+ h.vm.provision :shell, :inline => "/vagrant/build_fuel_plugin.sh"
+ h.vm.synced_folder "../..", "/vswitchperf"
+ h.vm.provider :virtualbox do |v|
+ v.customize ["modifyvm", :id, "--memory", 4096]
+ v.customize ["modifyvm", :id, "--cpus", 4]
+ end
+ end
+end
diff --git a/fuel-plugin-vsperf/vagrant/build_fuel_plugin.sh b/fuel-plugin-vsperf/vagrant/build_fuel_plugin.sh
new file mode 100755
index 00000000..77b6a33d
--- /dev/null
+++ b/fuel-plugin-vsperf/vagrant/build_fuel_plugin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+sudo apt-get update -y
+sudo apt-get install createrepo rpm dpkg-dev -y
+sudo apt-get install python-setuptools -y
+sudo apt-get install python-pip -y
+sudo easy_install pip
+sudo pip install fuel-plugin-builder
+sudo apt-get install ruby -y
+sudo gem install rubygems-update
+sudo gem install fpm
+fpb --debug --build /vswitchperf/fuel-plugin-vsperf