potiuk opened a new pull request #11176:
URL: https://github.com/apache/airflow/pull/11176


   **NOTE TO REVIEWER** Please review only the last commit as it depends on 
#11174 
   
   This is the third (and not last) part of making the Production
   image more corporate-environment friendly. It's been prepared
   for the request of one of the big Airflow user (company) that
   has rather strict security requirements when it comes to
   preparing and building images. They are committed to
   synchronizing with the progress of Apache Airflow 2.0 development
   and making the image customizable so that they can build it using
   only sources controlled by them internally was one of the important
   requirements for them.
   
   This change adds the possibilty of customizing various steps in
   the build process:
   
   * adding custom scripts to be run before installation of both
     build image and runtime image. This allows for example to
     add installing custom GPG keys, and adding custom sources.
   
   * customizing the way NodeJS and Yarn are installed in the
     build image segment - as they might rely on their own way
     of installation.
   
   * adding extra packages to be installed during both build and
     dev segment build steps. This is crucial to achieve the same
     size optimizations as the original image.
   
   * defining additional environment variables (for example
     environment variables that indicate acceptance of the EULAs
     in case of installing proprietary packages that require
     EULA acceptance - both in the build image and runtime image
     (again the goal is to keep the image optimized for size)
   
   The image build process remains the same when no customization
   options are specified, but having those options increases
   flexibility of the image build process in corporate environments.
   
   This is part of #11171.
   
   This change also fixes some of the issues opened and raised by
   other users of the Dockerfile.
   
   Fixes: #10730
   Fixes: #10555
   Fixes: #10856
   
   Input from those issues has been taken into account when this
   change was designed so that the cases described in those issues
   could be implemented. Example from one of the issue landed as
   an example way of building highly customized Airflow Image
   using those customization options.
   
   Depends on #11174
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   


----------------------------------------------------------------
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.

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


Reply via email to