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 a9a369f718 Add support for sharing plugins folder from host in Breeze 
(#36210)
a9a369f718 is described below

commit a9a369f718005eeb68d01a4987b2c635cf357daf
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Dec 13 20:40:51 2023 +0100

    Add support for sharing plugins folder from host in Breeze (#36210)
---
 dev/breeze/src/airflow_breeze/utils/visuals.py  | 8 ++++++--
 scripts/ci/docker-compose/local-all-sources.yml | 2 ++
 scripts/ci/docker-compose/local.yml             | 2 ++
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev/breeze/src/airflow_breeze/utils/visuals.py 
b/dev/breeze/src/airflow_breeze/utils/visuals.py
index 2bc062c1ce..8f7e209ed7 100644
--- a/dev/breeze/src/airflow_breeze/utils/visuals.py
+++ b/dev/breeze/src/airflow_breeze/utils/visuals.py
@@ -105,14 +105,18 @@ CHEATSHEET = f"""
           which is mounted from folder in Airflow sources:
           * `{AIRFLOW_SOURCES_ROOT}/files/dags`
 
+        * Your plugins are read from `/files/plugins` directory
+          which is mounted from folder in Airflow sources:
+          * `{AIRFLOW_SOURCES_ROOT}/files/plugins`
+
         * You can add `airflow-breeze-config` directory. Place it in
           `{AIRFLOW_SOURCES_ROOT}/files/airflow-breeze-config` and:
             * Add `variables.env` - to make breeze source the variables 
automatically for you
             * Add `.tmux.conf` - to add extra initial configuration to `tmux`
             * Add `init.sh` - this file will be sourced when you enter 
container, so you can add
               any custom code there.
-
-        * You can put any other files. You can add them in
+            * Add `requirements.
+        * You can put share other files. Just add them in
           `{AIRFLOW_SOURCES_ROOT}/files` folder
           and they will be visible in `/files/` folder inside the container
 
diff --git a/scripts/ci/docker-compose/local-all-sources.yml 
b/scripts/ci/docker-compose/local-all-sources.yml
index eeafc04314..49aae366a7 100644
--- a/scripts/ci/docker-compose/local-all-sources.yml
+++ b/scripts/ci/docker-compose/local-all-sources.yml
@@ -19,6 +19,8 @@ services:
   airflow:
     stdin_open: true  # docker run -i
     tty: true  # docker run -t
+    environment:
+      - AIRFLOW__CORE__PLUGINS_FOLDER=/files/plugins
     # We need to mount files and directories individually because some files
     # such apache_airflow.egg-info should not be mounted from host
     # we only mount those files, so that it makes sense to edit while 
developing
diff --git a/scripts/ci/docker-compose/local.yml 
b/scripts/ci/docker-compose/local.yml
index df1f39d559..1ee86fc773 100644
--- a/scripts/ci/docker-compose/local.yml
+++ b/scripts/ci/docker-compose/local.yml
@@ -19,6 +19,8 @@ services:
   airflow:
     stdin_open: true  # docker run -i
     tty: true  # docker run -t
+    environment:
+      - AIRFLOW__CORE__PLUGINS_FOLDER=/files/plugins
     # We need to mount files and directories individually because some files
     # such apache_airflow.egg-info should not be mounted from host
     # we only mount those files, so that it makes sense to edit while 
developing

Reply via email to