eigr / massa

A Stateful Serverless framework on the BEAM VM
https://eigr.io
Apache License 2.0
54 stars 5 forks source link

Deployment story – WIP #10

Open marcellanz opened 4 years ago

marcellanz commented 4 years ago

I'd be great to have a simple and pragmatic deployment story right from the beginning.

sleipnir commented 4 years ago

Yes, I believe that this is possible. The proposed manifest approach is similar to that experienced in the most recent cloudstate-cli. I don't know if it would be interesting to create a new tool (mg as in your example), or to have cloudstate-cli provide this functionality. What do you think? I would trade Deploy for Run as the correct term, after all in a pure serveless environment it doesn't make much sense to deploy (there is no server :D). The tool would have to know how to build the container image (should we support OCI images?) From the source code passed in the URI, it would also have to be able to communicate with the kubernetes api to create the deployment. Will we do this in GO or Elixir? What model / format of manifest do you have in mind?

sleipnir commented 4 years ago

I'd be great to have a simple and pragmatic deployment story right from the beginning.

* embracing serverless

  * having just an account for any of the Cloud Providers.
  * no local tools to be installed.

* support things like `devcontainer`.

* compile! and deploy with nearly nothing to be installed locally

  * perhaps pulling docker images to build it?
  * `mg deploy --repository https://github.com/mungotinae/shoppingcart-example/ --auth john@example.com`
  * such a repository might have a "manifest" how to deploy.

* kind of self deployment.
marcellanz commented 3 years ago

I got work 🙀