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


   When scripts are inlined, they are created by the docker engine COPY <<"EOF" 
does it.  This means that they are created with the default permissions of the 
engine (always the same in all engines). 
   
   When the files were copied from the host (originally) permissions were 
copied from whatever was in the host. And this depended on umask setting in the 
host (and potentially on git configuration during the checkout). Practically, 
you could either have g+ or g- depending if your umask was 0002 or 0022 (those 
are most typical umask settings out there). 
   
   Additionally there was another problem on Windows. When you check out code 
on windows filesystem, you also loose executable bit. This we handled by 
explicitly adding +x when needed. In case of inlining we would have to so it 
anyway (for example you can see we do it for 'pip' inlined in Docker file).


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to