You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/13 15:58:09 UTC

[GitHub] [airflow] potiuk commented on pull request #20238: Optimize dockerfiles for local rebuilds

potiuk commented on pull request #20238:
URL: https://github.com/apache/airflow/pull/20238#issuecomment-992619940


   This is one of the final optimizations/refactorings and cleanups of the image before I will submit it to become an official image. Some last optimizations/clarifications (cleaning up the stderr output etc. )
   
   If you think it is to big I can attempt to split it into smaller pieces, but there are a number of changes in there that invalidate current layers of Airflow images, making the cache less effective and merging it in one go would only require image refresh once. 
   
   Since the image is going to be "official" I had to make sure that all the potential "errors" are either gone or are explained. There re many requirements to fulfill to become an "official image" - and I think with that one, we are getting closer to having them all fulfilled (https://github.com/docker-library/official-images). 
   
   One thing that I had to do however is to add this reassuring message that we know what we are doing by using root and not using virtualenv. I tried to solve the problem in PIP or even PEP 668 level but I failed, so I had t revert to this reassuring message:
   
   ![Screenshot from 2021-12-13 16-55-29](https://user-images.githubusercontent.com/595491/145844895-96088d89-9778-4158-9c16-416b3ebaec06.png)
   
   Looking forward to reviews!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org