Skip to content

Commit

Permalink
Add support for sharing plugins folder from host in Breeze (#36210)
Browse files Browse the repository at this point in the history
(cherry picked from commit a9a369f)
  • Loading branch information
potiuk committed Dec 15, 2023
1 parent 5422ceb commit 67031a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dev/breeze/src/airflow_breeze/utils/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,18 @@
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
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/docker-compose/local-all-sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/docker-compose/local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67031a1

Please sign in to comment.