Is this a configuration option to stream the outpu...
# general
g
Is this a configuration option to stream the output of docker build in real-time? I'm running into an issue where a docker build is taking 2h+ in CI, but 5-10m locally. I can't figure out what is going on and I'd like to be able to see the docker logs while the build is running so there is feedback to whoever is waiting on CI. I'm familiar with https://www.pantsbuild.org/stable/reference/subsystems/docker#build_verbose but that only logs it after the build succeeds.
h
There is no way to stream process output at the moment. I believe @fast-nail-55400 was looking in to this at one point?
g
Just in case someone runs into this gap in the product, here is a workaround:
Copy code
# This makes it possible to debug running docker builds executed by pants

mv /usr/bin/docker /usr/bin/docker.real
cat <<'EOF' | tee /usr/bin/docker
#!/bin/bash
if [[ "$*" == *"buildx build"* ]]; then
  /usr/bin/docker.real "$@" --progress=plain --debug >/tmp/buildx.log 2>&1
else
  /usr/bin/docker.real "$@"
fi
EOF
chmod 0755 /usr/bin/docker
f
I was lightly working on it from time to time.
But no progress to report at the moment.