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

withLogConsumer does not stream stdout/stderr from executing commands #828

Open
huksley opened this issue Sep 1, 2024 · 0 comments
Open

Comments

@huksley
Copy link

huksley commented Sep 1, 2024

Expected Behaviour

When creating a container using withLogConsumer to collect logs from executing commands, it is expected that the output of executing command will be streamed during the (potentially log running operation) exec

Actual Behaviour

No logs are streamed

Testcontainer Logs
See logs in 1st comment of this gist https://gist.github.com/huksley/4f3d2455d65e154d4fb296fca4e49897?permalink_comment_id=5174757#gistcomment-5174757

Steps to Reproduce

  1. Get complete example from https://gist.github.com/huksley/4f3d2455d65e154d4fb296fca4e49897
  2. Run node t.js
  3. Expect lines LOG 1 to be printed
  4. Only see RESULT { output: '1\n', exitCode: 0 } is printed

Environment Information

  • Operating System: MacOS X Sonoma 14.5 (23F79)
  • Docker Version: 26.1.1
  • Node version: v18.18.2
  • Testcontainers version: [email protected]
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

1 participant