Add "Cloud Builder" support to haikuporter
Opened this issue · 0 comments
kallisti5 commented
Haiku can be booted in several cloud environments. (Digital Ocean, AWS, Vultr)
With the cloud_init hpkg in Haikuports, the VM's can be provisioned on the fly at startup by the cloud providers above.
Example:
https://gist.github.com/kallisti5/d84de68d232a22b3d55b66f8618ceb42
In theory, haikuporter could perform Haiku package builds at any cloud provider via a few API calls followed by an SSH connection.
- haikuporter Provision new Haiku VM via API calls
- haikuporter SSH keys provisioned via cloud_init in booting VM.
- haikuporter SSH's to new server
- Builds happen
- haikuporter gets artifacts
- haikuporter destroys the Haiku VM via API calls.
- 1 is the most work needed, should be cloud agnostic and extendable
- 2 isn't really much work
- 3 already happens today over ssh, just needs dynamic IP fed to it from step 1
- 4 already happens today over ssh
- 5 already happens today over ssh
- 6 is similar to 1 in reverse