Skip to content

Training Platform

Cesar Celis Hernandez edited this page Jan 27, 2023 · 8 revisions

Architecture:

Screenshot 2023-01-26 at 7 38 59 PM

Objective:

To start creating the provisioning script for MJ to get VMs.

Tasks

  • 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"
}
  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.
  1. Add --delete-vm
  • You have to provide a name of the container or VM, example
python3 vm-provider.py --delete-vm "a-json-string"
  1. AR Cesar: to work in the linter: Python Linter to be added, PEP-8 https://peps.python.org/pep-0008/

  2. Rest API webhook with Python, so that with a curl or Postman someone can request VMs

  3. AR Cesar: Add Authentication in our Rest API above in point 4 [Cookies, or JWT, or what?]

  4. AR Allan: Move this wiki out of cniackz and put it under https://github.com/miniohq/engineering-tools/wiki

  5. AR both: Synch next week to keep progressing.

Clone this wiki locally