[ 
https://issues.apache.org/jira/browse/AIRFLOW-5441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925391#comment-16925391
 ] 

ASF subversion and git services commented on AIRFLOW-5441:
----------------------------------------------------------

Commit cfd602261819f26e4115b44fd15b30b65216b94e in airflow's branch 
refs/heads/master from Jarek Potiuk
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=cfd6022 ]

[AIRFLOW-5441] Ownership of package*.json file group write is fixed (#6061)

When you use Breeze and you specify "--force-pull" flag, the latest image from
DockerHub is pulled before you attempt to rebuild the image. Currently in
breeze we used an optimised version of "fix-permission" script that only fixes
permissions of several files in the context (the workaround for different
roup write umask setting in DockerHub). However we did not have package.json
and package-lock.json on the list so those files were always seen as "changed"
and npm was reinstalled for the first time (and only the first time) when the
image was force pulled.

After fixing this, the of --force-pull breeze commands will be much faster -
skipping the whole npm package reinstallation. Depending on your network speed,
this might be between 20 seconds to several minutes as npm ci command wipes out
everything and downloads a lot of packages.

> When you force pull images with Breeze it rebuilds npm unnecessarily
> --------------------------------------------------------------------
>
>                 Key: AIRFLOW-5441
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5441
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: ci
>    Affects Versions: 2.0.0, 1.10.6
>            Reporter: Jarek Potiuk
>            Priority: Major
>
> When you use Breeze and you specify "--force-pull" flag, the latest image 
> from DockerHub is pulled before you attempt to rebuild the image. Currently 
> in breeze we used an optimised version of "fix-permission" script that only 
> fixes permissions of several files in the context (the workaround for 
> different (group write) umask setting in DockerHub). However we did not have 
> package.json and package-lock.json on the list so those files were always 
> seen as "changed" and npm was reinstalled for the first time (and only the 
> first time) when the image was force pulled.
>  
> After fixing this, the of --force-pull breeze commands will be much faster - 
> skipping the whole npm package reinstallation. Depending on your network 
> speed, this might be between 20 seconds to several minutes as npm ci command 
> wipes out everything and downloads a lot of packages.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to