This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new efed15bb6d Fix _PIP_ADDITIONAL_REQUIREMENTS case for docker-compose
(#23517)
efed15bb6d is described below
commit efed15bb6de8ac214b7029659ea08ce079116274
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.
---
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 dadd115151..aeaa724d3f 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