summaryrefslogtreecommitdiffstats
path: root/fuel-plugin/vagrant/build_fuel_plugin.sh
blob: 58ea3ca339256f78082c2925bf3b69b83a14ef62 (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 libssl-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