WebUI microservice for providing status and start/stop features for Palette Insight Server.
In this project you will find:
- the supervisord configuration file which starts the website as a service
- an nginx configuration file
- a sample.txt for testing purposes
The Palette Insight Website serves multiple functions:
- Shows status information on Palette Insight components.
- Enables download option for Palette Insight Agent on
/control
- Allows user to stop and start Palette Insight server side services on
/control
- Allows updating Palette Insight on
/control
- Allows remote editing of Palette Insight Agent config files.
/config
- Palette Insight Website is compatible with Python 3.5
To build the package you may use the create_rpm.sh:
export PACKAGEVERSION=123
export VERSION=v1.0.$PACKAGEVERSION
./create_rpm.sh
The most convenient is to build the RPM package and install it using either yum or rpm. It does require and install the other necessary components and services.
The following process is executed by the installer:
- installation of the required python packages (
pip install -r requirements.txt
) - enabling the http/s services on the firewall
- disabling the default nginx site configuration
- startup of the palette-insight-website service
To start the server execute:
python server.py
To test the website without the other components been installed start it in test mode:
DEBUG=1 python server.py
The website is available under http://localhost:9080
To run the unit tests execute:
python -m unittest test_agent_installer.py
Palette Insight Website is licensed under the GNU GPL v3 license. For professional support please contact [email protected]
Any bugs discovered should be filed in the Palette Insight Website Git issue tracker or contribution is more than welcome.