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

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


The following commit(s) were added to refs/heads/v2-3-test by this push:
     new 342f20ac4a Fix _PIP_ADDITIONAL_REQUIREMENTS case for docker-compose 
(#23517)
342f20ac4a is described below

commit 342f20ac4a139eaa7e52af8ba2cf7504b91f72b1
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat May 7 16:17:48 2022 +0200

    Fix _PIP_ADDITIONAL_REQUIREMENTS case for docker-compose (#23517)
    
    Recent versions of Airflow do not allow to run `pip install` as
    root but the `init` job runs as root so when the variable
    _PIP_ADDITIONAL_REQUIREMENTS is set, the init container fails.
    
    This PR forces _PIP_ADDITIONAL_REQUIREMENTS to be empty for the init
    job.
    
    (cherry picked from commit efed15bb6de8ac214b7029659ea08ce079116274)
---
 docs/apache-airflow/start/docker-compose.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/apache-airflow/start/docker-compose.yaml 
b/docs/apache-airflow/start/docker-compose.yaml
index b052ea708f..cb58d2d89c 100644
--- a/docs/apache-airflow/start/docker-compose.yaml
+++ b/docs/apache-airflow/start/docker-compose.yaml
@@ -235,6 +235,7 @@ services:
       _AIRFLOW_WWW_USER_CREATE: 'true'
       _AIRFLOW_WWW_USER_USERNAME: ${_AIRFLOW_WWW_USER_USERNAME:-airflow}
       _AIRFLOW_WWW_USER_PASSWORD: ${_AIRFLOW_WWW_USER_PASSWORD:-airflow}
+      _PIP_ADDITIONAL_REQUIREMENTS: ''
     user: "0:0"
     volumes:
       - .:/sources

Reply via email to