You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/03/23 03:26:11 UTC

[airflow] 24/34: Adds missing variable for force pull base image variable (#14901)

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

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

commit 3f19f969fe3c6881cab4caff5fa052641648474b
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sat Mar 20 01:13:46 2021 +0100

    Adds missing variable for force pull base image variable (#14901)
    
    The variable's default value was not set, thus failing pre-commit
    scripts in case image was not built recently.
    
    (cherry picked from commit f2c3403580e8f338d511549e259a5e4dd9b7a43d)
---
 scripts/ci/libraries/_initialization.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/ci/libraries/_initialization.sh b/scripts/ci/libraries/_initialization.sh
index 13132ce..606e2c5 100644
--- a/scripts/ci/libraries/_initialization.sh
+++ b/scripts/ci/libraries/_initialization.sh
@@ -254,9 +254,13 @@ function initialization::initialize_mount_variables() {
 
 # Determine values of force settings
 function initialization::initialize_force_variables() {
-    # Whether necessary for airflow run local sources are mounted to docker
+    # By default we do not pull CI/PROD images. We can force-pull them when needed
     export FORCE_PULL_IMAGES=${FORCE_PULL_IMAGES:="false"}
 
+    # By default we do not pull python base image. We should do that only when we run upgrade check in
+    # CI master and when we manually refresh the images to latest versions
+    export FORCE_PULL_BASE_PYTHON_IMAGE="false"
+
     # Determines whether to force build without checking if it is needed
     # Can be overridden by '--force-build-images' flag.
     export FORCE_BUILD_IMAGES=${FORCE_BUILD_IMAGES:="false"}