-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
remote + build + RUN: emits spurious CR (^M) #8342
Comments
- images: confirm that 'podman images' emits headings even if there are no images present. Intended to replace e2e test which is difficult to get working under podman-remote. - build: add test for containers#8092, podman-build gobbling stdin. Workaround needed for issues containers#8342 and containers#8343, in which podman-remote output differs from podman local. - volumes: add test for containers#8307, double-lock on same volume. Signed-off-by: Ed Santiago <[email protected]>
@nalind Any ideas what is causing this? |
Is there a pseudo-terminal involved? If so, does it have the "ONLCR" flag set on its output? Running "stty -a" in that context would tell us, either with "onlcr" (set) or "-onlcr" (not set). |
The terminal from which I'm running has The $ printf "FROM alpine\nRUN echo hi\n" | bin/podman-remote build -t foo - |& cat -vET
...
hi^M$ |
Is the command indicated in the RUN instruction being executed with a pseudo-terminal, and if so, is "onlcr" set in it? Experimentally, it looks like |
Duh, sorry, I misunderstood. $ printf "FROM alpine\nRUN stty -a\n" | bin/podman-remote build -t foo - |& cat -vET
STEP 1: FROM alpine$
STEP 2: RUN stty -a$
speed 38400 baud;stty: standard input^M$
line = 0;^M$
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;^M$
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;^M$
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;^M$
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts^M$
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff^M$
-iuclc -ixany -imaxbel -iutf8^M$
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0^M$
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt^M$
echoctl echoke -flusho -extproc^M$
STEP 3: COMMIT foo$
...
$ printf "FROM alpine\nRUN stty -onlcr && echo hi\n" | bin/podman-remote build -t foo - |& cat -vET
STEP 1: FROM alpine$
STEP 2: RUN stty -onlcr && echo hi$
hi$ <--- yippee!
STEP 3: COMMIT foo$
... podman-non-remote for comparison: $ printf "FROM alpine\nRUN stty -a\n" | bin/podman build -t foo - |& cat -vET
STEP 1: FROM alpine$
STEP 2: RUN stty -a$
stty: standard input: Not a tty$
Error: error building at STEP "RUN stty -a": error while running runtime: exit status 1$ |
A friendly reminder that this issue had no activity for 30 days. |
This is fixed in the main branch. |
Another variant of #7942 : RUN commands within a
podman build
are emitting an unwanted^M
.In window 1:
$ bin/podman system service --timeout=0
In window 2:
Output is below, contrasting podman (left) to podman-remote (right):
master @ 4eb9c28; also present in podman-2.1.1-7.fc32
If/when this is fixed, please update test:
podman/test/system/070-build.bats
Lines 358 to 367 in 9fa09a8
The text was updated successfully, but these errors were encountered: