fuel-plugin-manila/pre_build_hook

22 lines
737 B
Bash
Executable File

#!/bin/bash
# update submodules for core puppet manifests
git submodule update --remote deployment_scripts/puppet/modules/manila
# build the deb for manila project
curdir=$(pwd)
tmpdir=$(mktemp -d); cd $tmpdir
git clone --depth 1 -b stable/mitaka https://github.com/openstack/manila.git
fpm -s python -t deb --python-install-bin /usr/bin --python-install-lib /usr/lib/python2.7/dist-packages/ manila/setup.py
git clone --depth 1 -b stable/mitaka https://github.com/openstack/python-manilaclient.git
fpm -s python -t deb python-manilaclient/setup.py
git clone --depth 1 -b stable/mitaka https://github.com/openstack/manila-ui.git
fpm -s python -t deb manila-ui/setup.py
cp *.deb $curdir/repositories/ubuntu
cd .. ; rm -rf $tmpdir