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

Mutagen docker stack command #50

Closed
matthew-gill opened this issue Oct 24, 2018 · 5 comments
Closed

Mutagen docker stack command #50

matthew-gill opened this issue Oct 24, 2018 · 5 comments

Comments

@matthew-gill
Copy link

matthew-gill commented Oct 24, 2018

Hey @havoc-io I've created this:
https://github.com/matthew-gill/mutagen-stack

Which creates a command to handle mutagen stacks including clean up of both docker-compose and mutagen sessions.

It's designed to only work with one mutagen session, but should be relatively easy to extend.

This is just for your perusal, I don't claim to be an expert in bash etc, but I've been using this for a few days and have found it useful...

@xenoscopic
Copy link
Member

That's awesome! Seriously, thanks so much! This is exactly the sort of prototyping I was hoping would happen. As of November 1st I'll be switching to Mutagen work full-time (at least for the next few months), and one of my priorities will be adding a "plumbing" interface to Mutagen so that it's more script-friendly.

I'm looking forward to playing with this tool. I'm not a container orchestration expert, but hopefully this'll help me identify some of the pain points (and opportunities) with integration.

@matthew-gill
Copy link
Author

matthew-gill commented Oct 25, 2018

No problem :)
The rest of the team I work with are slowly starting to switch to docker and mutagen so seriously looking forward to what comes next!

The design was heavily influenced by docker-sync-stack

My vote goes (at least for local development) to focus on integrating with docker-compose. Some sort of roadmap of what you're planning on releasing would also be greatly appreciated if you have the time!

@xenoscopic
Copy link
Member

That's so cool to hear! I think the picture is becoming a little bit clearer in terms of what Docker support needs to look like and enable. I think big improvements will be in store in the next month. I'll keep you up-to-date.

@Toilal
Copy link

Toilal commented May 23, 2019

I wrote a python application mutagen-helper, just released today, that wraps mutagen binary and can help to manage your sessions.

Put configuration in a yaml file in a directory to sync, and run mutagen-helper up / mutagen-helper down to create / terminate sessions.

It should really help to manage multiple projects, with one or many sessions per project. In my case, I will drop a single session containing about 20 projects to enable/disable sessions as needed to solve performance issues.

@xenoscopic
Copy link
Member

Hey @matthew-gill, you might have a look at the new label/selector support in Mutagen v0.9.0-beta2 — it might make the implementation of your project a little simpler. It's designed to be compatible with the syntax that Kubernetes uses (since it actually re-uses the Kubernetes label/selector implementation). It might make scripting significantly easier.

There are also new -c/--configuration and --no-global-configuration flags documented in the release notes that might be useful for tools scripting Mutagen.

I'm going to close out this issue just to keep the issue tracker tidy, but it doesn't mean the discussion can't continue. Thanks again for your efforts!

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

No branches or pull requests

3 participants