/knm-server

K Network Manager (libvirtd networks)

Primary LanguagePython

Flask network manager server for knm-agent (client)

Use Libraries

  • Flask (Obvious!)
  • Flask-SQLAlchemy (ORM for database)
  • Flask-WTF (Generation of forms and validations)
  • Faker (Generates fake data)
  • wakeonlan (to send magic packets)

Installation

pip install -r requirements.txt
python3 migrations.py

Run

python3 app.py

Run with docker

docker run -it --rm --name my-running-script -p 5000:5000 -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:3 bash -c ./run-up.sh

If you wish Wake On LAN support, run with --net=host

docker run -it --rm --name my-running-script --net=host -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:3 bash -c ./run-up.sh