summaryrefslogtreecommitdiffstats
path: root/fuel-plugin/vagrant/build_fuel_plugin.sh
blob: 35cb1add9f3fa0b6ea97bb2bfebc116cf8f3c9bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
sudo apt-get update -y
sudo apt-get install -y ruby-dev rubygems-integration python-pip rpm createrepo dpkg-dev
sudo gem install fpm
sudo pip install fuel-plugin-builder
sudo apt-get install docker.io -y

echo y | sudo mkfs.ext4 /dev/sdb
sudo mount /dev/sdb /mnt
sudo chown vagrant:vagrant /mnt

cd /mnt
# Will build fuel-plugin-kvm in guest VM local directory, not change host
cp -r /kvmfornfv .
cd kvmfornfv/fuel-plugin
fpb --debug --build .
# Copy the built fuel-plugin-kvm back to the host
cp *.rpm /vagrant