-
Notifications
You must be signed in to change notification settings - Fork 0
Training Platform
Cesar Celis Hernandez edited this page Jan 27, 2023
·
8 revisions
To start creating the provisioning script for MJ to get VMs.
-
python is going to be the scripting language we seleced
-
We need to create a Python Script
-
JSON format
{
"prefix-of-vm": "vm-runner",
"number-of-vms": "1"
}
- Add --command-line-arguments:
--create-vm
Assigned to Allan.
- I expect this command line argument to create a certain nunmber of VMs and default can be defined by developer.
- nomenclature vm-training-
--create-vm '<json-string>'
- Idea is to create more VMs on top of the current VMs.
- Hardcode all VM values or configuration until we add another flag for those.
- Add
--delete-vm
- You have to provide a name of the container or VM, example
python3 vm-provider.py --delete-vm "a-json-string"
-
AR Cesar:
to work in the linter: Python Linter to be added, PEP-8https://peps.python.org/pep-0008/
-
Rest API webhook with Python, so that with a curl or Postman someone can request VMs
-
AR Cesar
: Add Authentication in our Rest API above in point 4 [Cookies, or JWT, or what?] -
AR Allan
: Move this wiki out of cniackz and put it under https://github.com/miniohq/engineering-tools/wiki -
AR both: Synch next week to keep progressing.