8000 GitHub - ttripp/searchlight-ui: NOTICE: This repo has been migrated to be under OpenStack governance. Please see: https://github.com/openstack/searchlight-ui This served as the basis of the new OpenStack Searchlight UI. It originally lived in a gerrit patch for Horizon, but was decided for mitaka to go ahead and create a separate plugin. See also: wiki.openstack.org/wiki/Searchlight
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NOTICE: This repo has been migrated to be under OpenStack governance. Please see: https://github.com/openstack/searchlight-ui This served as the basis of the new OpenStack Searchlight UI. It originally lived in a gerrit patch for Horizon, but was decided for mitaka to go ahead and create a separate plugin. See also: wiki.openstack.org/wiki/Searc…

License

Notifications You must be signed in to change notification settings

ttripp/searchlight-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

searchlight-ui

NOTE: This repo has been migrated to be under OpenStack governance.

Please see:

https://github.com/openstack/searchlight-ui

Any changes past March 28, 2016 are experimental.

Horizon panels and libraries for searchlight

The Searchlight project provides indexing and search capabilities across OpenStack resources. Its goal is to achieve high performance and flexible querying combined with near real-time indexing.

Use the following resources to learn more:

Features

  • Please see the searchlight-ui repository

Setup Local Dev Environment

Assumptions:

  • horizon is installed or cloned into <basedir>/horizon/
  • searchlight-ui is installed or cloned into <basedir>/searchlight-ui/
  • current working directory is <basedir>/horizon/
  1. Install environment.:

    #Locally cloned Horizon environment
    ./tools/with_venv.sh pip install -e ../searchlight-ui
    
    #Devstack environment
    pip install -e ../searchlight-ui
    
  2. Copy <searchlight-ui>/searchlight_ui/enabled/_1001_project_search_panel.py to <horizon_dir>/openstack_dashboard/local/enabled/:

    cp -rv ../searchlight-ui/searchlight_ui/enabled/_1001_project_search_panel.py openstack_dashboard/local/enabled/
    
  3. Set up the policy files. First copy the policy file <searchlight-ui>/searchlight_ui/conf/searchlight_policy.json into horizon's policy files <horizon_dir>/openstack_dashboard/conf/ folder and then add the following config to the POLICY_FILES setting in openstack_dashboard/local/local_settings.py:

    cp ../searchlight-ui/searchlight_ui/conf/searchlight_policy.json openstack_dashboard/conf/
    
    #Add to ``POLICY_FILES`` setting in ``openstack_dashboard/local/local_settings.py``
    'search': 'searchlight_policy.json',
    
  4. (If offline compression is enabled - typical in production and devstack). Django has a compressor feature that performs many enhancements for the delivery of static files. It can be enable or disabled (COMPRESS_ENABLED). In addition, offline compression may be enabled or disabled (COMPRESS_OFFLINE = True). If offline compression is enabled in your environment, you must run the following commands the first time you install searchlight-ui and anytime you make changes to it.:

    ./manage.py collectstatic
    ./manage.py compress
    
  5. Restart your horizon services.:

    #Locally cloned Horizon environment (not under apache)
    ./run_tests.sh --runserver 0.0.0.0:8005 (use desired IP and port)
    
    #Devstack
    sudo service apache2 restart
    

Create and Install Local Package

Change working directory to <basedir>/searchlight-ui/

  1. Package the searchlight_ui by running:

    python setup.py sdist
    
  2. This will create a python egg in the dist folder, which can be used to install on the horizon machine or within horizon's python virtual environment (prepend wih ./tools/with_venv.sh):

    pip install dist/searchlight-ui-0.0.0.tar.gz (use appropriate version)
    

About

NOTICE: This repo has been migrated to be under OpenStack governance. Please see: https://github.com/openstack/searchlight-ui This served as the basis of the new OpenStack Searchlight UI. It originally lived in a gerrit patch for Horizon, but was decided for mitaka to go ahead and create a separate plugin. See also: wiki.openstack.org/wiki/Searc…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0