You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jarek Potiuk (Jira)" <ji...@apache.org> on 2019/09/08 13:22:00 UTC

[jira] [Created] (AIRFLOW-5441) When you force pull images with Breeze it rebuilds npm unnecessarily

Jarek Potiuk created AIRFLOW-5441:
-------------------------------------

             Summary: 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


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)