Comment:
We always try to reference conda-forge code and internal processes when possible. Why reinvent the wheel? 🙂
We noticed the use of PYTHONDONTWRITEBYTECODE, but was curious if PYTHONUNBUFFERED was also looked at, but in the end was not used for whatever reason?
https://github.com/conda-forge/conda-forge-webservices/blobff4eb46a3ae54b28da199869a4027763ee423287c/Dockerfile#L39
If I understand the use of PYTHONUNBUFFERED=1 t will help to get the stdout and stderr in realtime instead of when the predefined buffer fills up? This is generally good in a containerized environment so we are seeing logs in realtime?
https://docs.docker.com/guides/python/containerize/#initialize-docker-assets (can be seen under manual)
Comment:
We always try to reference conda-forge code and internal processes when possible. Why reinvent the wheel? 🙂
We noticed the use of
PYTHONDONTWRITEBYTECODE, but was curious ifPYTHONUNBUFFEREDwas also looked at, but in the end was not used for whatever reason?https://github.com/conda-forge/conda-forge-webservices/blobff4eb46a3ae54b28da199869a4027763ee423287c/Dockerfile#L39
If I understand the use of
PYTHONUNBUFFERED=1t will help to get the stdout and stderr in realtime instead of when the predefined buffer fills up? This is generally good in a containerized environment so we are seeing logs in realtime?https://docs.docker.com/guides/python/containerize/#initialize-docker-assets (can be seen under manual)