entrypoint debug output on STDOUT instead of STDERR
Nick-OpusVL opened this issue · 1 comments
Nick-OpusVL commented
Tested on branch: WIP-10.0-pg10-fix-preinstall-c-compiler
Probably the case on all branches.
Ran this:
docker-compose run --rm -u root odoo /bin/echo "Hi" 2>/dev/null
Got:
Entered opusvl-entrypoint.py
/entrypoint.sh ['/bin/echo', 'Hi']
Hi
Expected:
Hi
Nick-OpusVL commented
I believe the fix for this is to use the -T
flag to docker-compose run or docker-compose exec.
It looks like if you enable TTY allocation (which is the default in docker-compose unless you specify -T
the whole of the TTY is attached to STDOUT. If you disable TTY, the stdout and stderr appear to be allocated correctly.