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

Stream packer.py output to console #6

Open
Arlington1985 opened this issue Jan 21, 2021 · 1 comment
Open

Stream packer.py output to console #6

Arlington1985 opened this issue Jan 21, 2021 · 1 comment

Comments

@Arlington1985
Copy link

Currently, you can't see the output of packer.py unless it finishes its job. Is there any way to stream it in real-time to console?

@bibby-nh
Copy link

bibby-nh commented Jul 1, 2021

The constructor accepts a config kwarg where we can set the stdout & stderr handlers given to the packer subprocess. I'm running this in a container for drone, and this execution is working for me:

packer = PackerExecutable(
    machine_readable=False,
    config=dict(
        stdout=sys.stdout,
        stderr=sys.stderr
    )
)

Thanks for assuring me I wasn't the only one.

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

2 participants