A set of Tower QE dashboard that allows to have better insight of what is going on
To be able to setup a production environment, few steps are required.
- Locally build the
tower-dashboard
rpm. (Mock needs to be previously installed)
#> ./contrib/packaging/build_rpm.sh
-
scp the resulting rpm package to your production system
-
On the production server
#> yum -y install httpd mod_wsgi epel-release
#> yum -y install python-pip
#> yum -y install /path/to/tower-dashboard.rpm
#> pip install -U flask
- Create the proper httpd configuration (
/etc/httpd/conf.d/00_dashboard,conf
)
<VirtualHost *:80>
CustomLog logs/tower_dashboard combined
ErrorLog logs/tower_dashboar_errors
DocumentRoot /usr/share/tower-dashboard
WSGIScriptAlias / /usr/share/tower-dashboard/wsgi.py
WSGIPassAuthorization On
<Directory /usr/lib/python2.7/site-packages/towerdashboard>
AllowOverride None
Require all granted
</Directory>
<Directory /usr/share/tower-dashboard>
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
-
Edit
/etc/tower_dashboard/settings.py
-
Restart httpd
To be able to set up a dev environment, few steps are required.
- Ensure
pip
andvirtualenv
are installed
#> yum -y install python-pip python-virtualenvironment
- Create yourself a virtual environment
#> virtualenv /path/to/towerdasboard/venv
#> source /path/to/towerdashboard/venv/bin/activate
- Clone the repository
#> git clone https://github.com/Spredzy/tower-dashboard
- Install the dependencies
#> cd tower-dashboard
#> pip install -r requirements.txt
- Copy and edit the settings.sample.py file
#> cp settings.sample.py /tmp/settings.py
#> vim /tmp/settings.py
- Rock'n'Roll
#> FLASK_APP=/path/to/towerdashboard/app.py FLASK_DEBUG=1 TOWERDASHBOARD_SETTINGS=/tmp/settings.py flask run
- Initialize the DB
#> curl http://127.0.0.1:5000/init-db
tower-dashboard should be running on your local loop on port 5000 (http://127.0.0.1:5000
)
Apache 2.0
- Tower QE [email protected]