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

Added withLogConsumer() method to DockerComposeContainer #629

Merged
merged 3 commits into from
Apr 7, 2018
Merged

Added withLogConsumer() method to DockerComposeContainer #629

merged 3 commits into from
Apr 7, 2018

Conversation

barrycommins
Copy link
Contributor

Added withLogConsumer(String serviceName, Consumer<OutputFrame> consumer) method to DockerComposeContainer

Fixes #605

.withExposedService("redis_1", 6379)
.withLogConsumer("redis_1", logConsumer);

environment.starting(Description.createTestDescription(Object.class, "name"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. please add try {} finally { }, otherwise this redis image will remain until the JVM exits
  2. use Description.EMPTY

@bsideup bsideup added this to the next milestone Apr 6, 2018
Copy link
Member

@kiview kiview left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I'd check this change on Docker for Windows on the weekend, there are sometimes some quirks involved on Docker-Compose on Windows, but I see no reason why it should not work.

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

Successfully merging this pull request may close these issues.

3 participants