Create python script to start a web server for setting up instances
Closed this issue · 0 comments
craig8 commented
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
- 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.
- 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.
- Install the volttron-ansible package from the volttron-ansible repository.
- Start the webserver (port 8080)
- Start the default browser and point it to localhost:8080