Code Monkey home page Code Monkey logo

tower-dashboard's Introduction

License

Tower QE Dashboard

A set of Tower QE dashboard that allows to have better insight of what is going on

Install

Production

To be able to setup a production environment, few steps are required.

  1. Locally build the tower-dashboard rpm. (Mock needs to be previously installed)
#> ./contrib/packaging/build_rpm.sh
  1. scp the resulting rpm package to your production system

  2. 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
  1. 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>
  1. Edit /etc/tower_dashboard/settings.py

  2. Restart httpd

Development

To be able to set up a dev environment, few steps are required.

  1. Ensure pip and virtualenv are installed
#> yum -y install python-pip python-virtualenvironment
  1. Create yourself a virtual environment
#> virtualenv /path/to/towerdasboard/venv
#> source /path/to/towerdashboard/venv/bin/activate
  1. Clone the repository
#> git clone https://github.com/Spredzy/tower-dashboard
  1. Install the dependencies
#> cd tower-dashboard
#> pip install -r requirements.txt
  1. Copy and edit the settings.sample.py file
#> cp settings.sample.py /tmp/settings.py
#> vim /tmp/settings.py
  1. Rock'n'Roll
#> FLASK_APP=/path/to/towerdashboard/app.py FLASK_DEBUG=1 TOWERDASHBOARD_SETTINGS=/tmp/settings.py flask run
  1. 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)

License

Apache 2.0

Contact

tower-dashboard's People

Contributors

spredzy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.