Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Docker Swarm #34

Open
gitmapd opened this issue Jan 19, 2023 · 2 comments
Open

Add support for Docker Swarm #34

gitmapd opened this issue Jan 19, 2023 · 2 comments

Comments

@gitmapd
Copy link

gitmapd commented Jan 19, 2023

I've organized on my own repository the required files to configure a docker swarm stack.
https://github.com/gitmapd/Canasta-DockerSwarm

I have also a few questions related to it:

  • It needs to be added to Canasta-CLI for setting up the stack like it's docker-compose counterpart, so how?
  • This setup takes into account the person setting up has a domain and has access to it's DNS because it uses the API of the registrar for it's configuration. So again i ask what's your opinion at it.

Let me know thank you.

@jeffw16
Copy link
Member

jeffw16 commented Feb 20, 2023

I've organized on my own repository the required files to configure a docker swarm stack.
https://github.com/gitmapd/Canasta-DockerSwarm

As we saw in one of our prior Canasta meetings, this seems pretty cool. However, it is customized quite extensively and does not reflect the same approach taken by the Canasta for Docker Compose stack. So, in order to add support for Docker Swarm, I think we should at least start by trying to reach feature parity: adding missing features and removing extraneous curation.

Furthermore, since Swarm is more similar to Kubernetes than it is to Docker Compose, it might be worth coming up with a new spec that should be applied for both K8s and Swarm, and that spec should probably be different from the one for Docker Compose, but only when there is a technical necessity for the difference. For instance, networking is more complex in Swarm and K8s compared to Compose, so that will need to be appropriately accounted for. However, there would not be any reason to add more complexity to the already very easy process of setting up Canasta using Docker Compose.

It needs to be added to Canasta-CLI for setting up the stack like it's docker-compose counterpart, so how?

We already offer a flag, -o, in the Canasta CLI to choose which orchestrator should be used.

@gitmapd
Copy link
Author

gitmapd commented Feb 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants