I use Java S2I image for a container running in Openshift (on premise). My problem is that the output of the image is page-buffered and oc logs ...
does not show me the last logs.
I could probably spin up my docker image that would do stdbuf -oL -e0 java ...
but I would prefer to stick to the 'official' image (just adding the jar to /deployments
). Is there any way to reduce buffering (use line-buffering instead of page-buffering), or flush the output on demand?
EDIT: It seems that I could update deployment config and pass stdbuf
in there, but that means that I'd have to compose all the args myself. Ideal solution would be passing --tty
do Docker, but I can't see how a custom arguments could be passed that way in Openshift.