elchicodepython / RealityMismatch

MIT License
1 stars 1 forks source link

Laboratory Deployment API #7

Open elchicodepython opened 5 years ago

elchicodepython commented 5 years ago

Labs Deployment API

We should implement an AP with access to Deploy Dockers and VMs. The platform should handle all the interaction with laboratories through this API providing developers the ability to start, stop and remove laboratories on the fly.

Example of use (Not final)

from realitymismatch.core.labs import deploy

lab = deploy.docker('levelLab:0.2', ports=((80, 80), (22, 22)), )

lab.start()
...
lab.destroy()
elchicodepython commented 4 years ago

After a lot of research. Im implementing this using a Lab Gateway which will serve as an abstraction to create and deploy labs.