Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Deployment story – WIP #10

Open
marcellanz opened this issue Oct 8, 2020 · 3 comments
Open

Deployment story – WIP #10

marcellanz opened this issue Oct 8, 2020 · 3 comments
Assignees
Labels
community enhancement New feature or request

Comments

@marcellanz
Copy link
Member

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 [email protected]
    • such a repository might have a "manifest" how to deploy.
  • kind of self deployment.
@sleipnir
Copy link
Member

sleipnir commented Oct 9, 2020

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
Copy link
Member

sleipnir commented Oct 9, 2020

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 [email protected]`
  * such a repository might have a "manifest" how to deploy.

* kind of self deployment.
  • embracing serverless
    I totally agree

  • having just an account for any of the Cloud Providers.
    I think we just need access to the kubernetes api. Once the user is logged into your cluster, I think we can access it transparently. Camel-K is a good reference on how to do this type of integration with different providers https://camel.apache.org/camel-k/latest/installation/installation.html

  • no local tools to be installed. And compile! and deploy with nearly nothing to be installed locally
    To generate images from the source code, I believe that the terms that depend on some tool like Docker, Buildah, Podman, or any other. For JVM-based languages, we could use the Google jib that does not need the docker daemon installed.

  • perhaps pulling docker images to build it?
    Maybe it's a good alternative, we will have to do a POC. We can create some basic images to facilitate the construction of different languages with their respective build tools. Can we be so opinionated as to eliminate dependence on a Dockerfile?

  • support things like devcontainer.
    Ok. Cool. But I am completely layman in devcontainer

@marcellanz
Copy link
Member Author

I got work 🙀

@sleipnir sleipnir added community enhancement New feature or request labels Mar 25, 2021
@sleipnir sleipnir changed the title deployment story – WIP Deployment story – WIP Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants