palantir / docker-compose-rule

A JUnit rule to manage docker containers using docker-compose
Apache License 2.0
425 stars 90 forks source link

Ignore stderr returned from docker-compose command #720

Open Sam-Kramer opened 1 year ago

Sam-Kramer commented 1 year ago

What happened?

A docker-compose file we had was using a deprecated property, and as a result would warn log to stderr. This ends up breaking docker-compose-rule downstream whenever we parse command output (such as when we list services) as the warn message will be seen as a valid input.

What did you want to happen?

Separate stdin from stderr when parsing command responses; probably makes sense to not ignore the warn (maybe log) but shouldn't cause catastrophic failure.