Deploy K8s with flannel/weave by fuel plugin
[openretriever.git] / src / fuel-plugin / vagrant / build_fuel_plugin.sh
diff --git a/src/fuel-plugin/vagrant/build_fuel_plugin.sh b/src/fuel-plugin/vagrant/build_fuel_plugin.sh
new file mode 100755 (executable)
index 0000000..4cd579f
--- /dev/null
@@ -0,0 +1,8 @@
+#!/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
+cp -r /fuel-plugin /home/vagrant
+cd /home/vagrant/fuel-plugin; fpb --debug --build .
+cp /home/vagrant/fuel-plugin/*.rpm /vagrant