Fuel plugin which enables OpenStack Manila with MOS controllers deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pre_build_hook 934B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. git submodule update
  3. function build_deb {
  4. version=$1
  5. src=$2
  6. name=$3
  7. fpm -v $version -s python -t deb -n $name --python-install-bin /usr/bin --python-install-lib /usr/lib/python2.7/dist-packages/ $src/setup.py
  8. }
  9. rm repositories/ubuntu/*
  10. cd repositories/python
  11. build_deb "1:2.0.1" manila fuel-plugin-manila-manila-core
  12. sed -i s/'python-keystoneclient'/'#python-keystoneclient'/ manila-ui/requirements.txt
  13. sed -i s/'python-manilaclient'/'#python-manilaclient'/ manila-ui/requirements.txt
  14. sed -i s/'disabled_quotas.extend(_get_manila_disabled_quotas(request))'/'disabled_quotas.update(_get_manila_disabled_quotas(request))'/ manila-ui/manila_ui/dashboards/project/shares/__init__.py
  15. build_deb 2.1.1 manila-ui fuel-plugin-manila-manila-ui
  16. cd manila-ui; git checkout stable/mitaka;
  17. git checkout -- requirements.txt;
  18. git checkout -- manila_ui/dashboards/project/shares/__init__.py
  19. cd ..
  20. mv *.deb ../ubuntu