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

buildah bud is gobbling stdin #2705

Closed
edsantiago opened this issue Oct 20, 2020 · 2 comments
Closed

buildah bud is gobbling stdin #2705

edsantiago opened this issue Oct 20, 2020 · 2 comments

Comments

@edsantiago
Copy link
Member

buildah bud is gobbling stdin that does not belong to it. This makes it impossible to pipe script commands to a shell.

$ printf "echo hi\r\nbuildah bud -t foo .\necho bye\n" | bash
hi
STEP 1: ...
...
<sha>

Note that the 'echo bye' is gobbled up by buildah. If you redirect stdin on the buildah command, it works as expected:

$ printf "echo hi\r\nbuildah bud -t foo . </dev/null\necho bye\n" | bash
hi
...
bye

See also: containers/podman#8066

@rhatdan
Copy link
Member

rhatdan commented Oct 20, 2020

I am not seeing this happen on the main branch of Podman, BTW. But opened a PR anyways,

@rhatdan
Copy link
Member

rhatdan commented Nov 6, 2020

This is fixed in master branch.

@rhatdan rhatdan closed this as completed Nov 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants