Hi everyone! How can I enable docker build logs? `...
# general
s
Hi everyone! How can I enable docker build logs?
pants -ldebug
doesn't help:
⠒ 41.27s Building docker image my-image:0.1.0
Thank you in advance!
1
upd: it shows the build log after the build, but I want to see it in realtime
f
right, if you use
Copy code
[docker]
build_verbose = true
then Pants will log the Docker output to the console. If false, only the image ID is logged. But you are right, it is shown only after the operation is complete. I believe this is intentional as Pants buffers the output before flushing to the terminal. I'll take a quick look to see if there's anything that let you see that in real time, but I am doubtful
s
thank you!
f
FWIW https://www.pantsbuild.org/docs/reference-docker the Docker options. I've experimented with
pants  --dynamic-ui=false
, but this doesn't effect the way the docker build output is shown. I can't see how it would be possible to see the build output live, the output is buffered and later flushed; IIUC this would require making changes to the Pants code.
s
Ok, I will go with
build_verbose = true
for now, thanks!
👍 1