Update README with latest deployment steps
Change-Id: I2ca82cc081af500ca7ae40de51fe7d415e9a1855 story: 2003321 task: 24353
This commit is contained in:
parent
01ef5c2285
commit
c4def625e9
38
README.rst
38
README.rst
@ -10,21 +10,43 @@ monasca-ui
|
|||||||
Monasca UI is implemented as a Horizon plugin that adds panels to
|
Monasca UI is implemented as a Horizon plugin that adds panels to
|
||||||
Horizon. It is installed into devstack by the monasca-api plugin.
|
Horizon. It is installed into devstack by the monasca-api plugin.
|
||||||
|
|
||||||
Deployment Set Up
|
Devstack Deployment Set Up
|
||||||
=================
|
==========================
|
||||||
|
|
||||||
- Clone Horizon:
|
- ``cd /opt/stack/horizon``
|
||||||
``git clone https://git.openstack.org/openstack/horizon.git``
|
- Install Openstack upper-constraints requirements
|
||||||
|
``pip install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt -r requirements.txt``
|
||||||
- ``cd horizon``
|
- Clone monasca-ui:
|
||||||
|
``git clone https://git.openstack.org/openstack/monasca-ui.git``
|
||||||
- Add ``git+https://git.openstack.org/openstack/monasca-ui.git`` to
|
- Add ``git+https://git.openstack.org/openstack/monasca-ui.git`` to
|
||||||
``requirements.txt``.
|
``requirements.txt``.
|
||||||
|
- Install monasca-ui required packages
|
||||||
|
``pip install -r requirements.txt`` (monasca-client packages will be installed.)
|
||||||
- Edit ``openstack_dashboard/settings.py`` to include the following two
|
- Edit ``openstack_dashboard/settings.py`` to include the following two
|
||||||
lines:
|
lines:
|
||||||
|
|
||||||
- ``import monitoring.enabled``
|
- ``import monitoring.enabled``
|
||||||
- ``monitoring.enabled,`` (Add this line to the
|
- ``monitoring.enabled,`` (Add this line to the
|
||||||
``settings.update_dashboards`` list.)
|
``settings_utils.update_dashboards`` list.)
|
||||||
|
- Link monasca into Horizon:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
ln -sf $(pwd)/../monasca-ui/monitoring/enabled/_50_admin_add_monitoring_panel.py \
|
||||||
|
$(pwd)/openstack_dashboard/enabled/_50_admin_add_monitoring_panel.py
|
||||||
|
ln -sf $(pwd)/../monasca-ui/monitoring/conf/monitoring_policy.json \
|
||||||
|
$(pwd)/openstack_dashboard/conf/monitoring_policy.json
|
||||||
|
ln -sfF $(pwd)/../monasca-ui/monitoring $(pwd)/monitoring
|
||||||
|
|
||||||
|
- Collect static files, run tests
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
python manage.py collectstatic --noinput
|
||||||
|
python manage.py compress
|
||||||
|
./run_tests.sh
|
||||||
|
|
||||||
|
- Restart apache service ``service apache2 restart``
|
||||||
|
|
||||||
Development Environment Set Up
|
Development Environment Set Up
|
||||||
==============================
|
==============================
|
||||||
@ -123,4 +145,4 @@ directory of this project:
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
$ tox -e py27,py35
|
$ tox -e py27,py35
|
Loading…
Reference in New Issue
Block a user