-
Notifications
You must be signed in to change notification settings - Fork 142
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
Minimal docker compose support #407
Minimal docker compose support #407
Conversation
Thank you for opening this PR! Unfortunately, I don't have the bandwidth at the moment to shepherd this. I have not put a lot of thought into how docker compose support should look like from an API PoV. Given that it is mostly additions, I don't expect many merge conflicts here so I'll just leave this open until either myself or another maintainer has the bandwidth to look into this. I hope you understand :) |
self.pull().expect("Failed to execute docker compose pull"); | ||
|
||
let mut cmd = self.cmd(); | ||
cmd.args(["up"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add some sort of up policy to handle --no-recreate --detach
|
||
fn pull(&self) -> Result<(), std::io::Error> { | ||
let mut cmd = self.cmd(); | ||
cmd.args(["pull"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case of not self.inherit_io
, we need to prevent logs like it's done in the up()
Are there any plans to review this? |
I am afraid I don't have the bandwidth to review this at the moment. If somebody can write up a high-level design on how this is meant to work, I can give some input :) |
Already done in rustainers. |
@IgorLaborieWefox I like your code so much. It's great, can I use this PR code for my new crate. I'm planning release a crate for dockers compose test |
@longdt I suggest you have a look at rustainers. It's implemented by the same team in a similar approach, maybe you can use it as is :) |
Just informing everyone interested, we are doing a major revision of |
Add a minimal
docker compose
support.See #59
The code is behind the
compose
feature.It requires having a
docker compose
v2.x.x installed