You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2024/03/06 14:47:49 UTC

(airflow) 07/31: Make airflow package preparation in docker work with all builders (#37678)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-8-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit cbcf25a7d321561c201e9b8ba867e986d5047438
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sat Feb 24 20:09:08 2024 +0100

    Make airflow package preparation in docker work with all builders (#37678)
    
    The Airflow package preparation using docker, worked nicely in CI
    and in most cases it worked locally, however in some cases, if you
    had custom docker builder configured it could stop working because
    you could have builder configured that would not load the images
    built locally (this is when you earlier run buildx for caching.
    
    This is now fixed - instead of using `buildx` plugin we use
    regular `docker build` plugin to build airflow packages, also we
    ignore `out` directory which was not ignored before and could
    unnecesarily increase time and size of the image build for
    airflow package preparation.
    
    (cherry picked from commit 6173d3c1d5112d779d4efb053b7ae0c99b3163b9)
---
 dev/breeze/src/airflow_breeze/commands/release_management_commands.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
index 29b16aa304..6b778253a0 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
@@ -239,6 +239,9 @@ airflow/www/node_modules
 # Exclude link to docs
 airflow/www/static/docs
 
+# Exclude out directory
+out/
+
 # Exclude python generated files
 **/__pycache__/
 **/*.py[cod]
@@ -351,7 +354,6 @@ def _build_local_build_image():
     run_command(
         [
             "docker",
-            "buildx",
             "build",
             ".",
             "-f",