VOLTTRON/volttron-installer

Create python script to start a web server for setting up instances

Closed this issue · 0 comments

This will be script that can be executed from the terminal. Use curl -sSL https://install.python-poetry.org | python3 - as an example for what we are looking for.

Assuming we have an install.py script at https://github.com/VOLTTRON/volttron-installer/blob/main/web.py we could run the same command as above and that would start the web server.

This script will

  1. Verify that the python version is >= 3.10 and we are going to only support apt based installs so apt must be on the command line.
  2. Create a virtual environment in the current directory (.venv) using python3 -m venv, if not already existing, and activate the environment for the current server.
  3. Install the volttron-ansible package from the volttron-ansible repository.
  4. Start the webserver (port 8080)
  5. Start the default browser and point it to localhost:8080