You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by sh...@apache.org on 2024/10/23 15:03:42 UTC
(airflow) branch main updated: Fix instruction for docker compose(tested on Mac M1) (#43119)
This is an automated email from the ASF dual-hosted git repository.
shahar 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 d725cf683ed Fix instruction for docker compose(tested on Mac M1) (#43119)
d725cf683ed is described below
commit d725cf683ed25955f739909d7176899224dca13a
Author: Bohdan Udovenko <bo...@gmail.com>
AuthorDate: Wed Oct 23 18:03:33 2024 +0300
Fix instruction for docker compose(tested on Mac M1) (#43119)
* Fix instruction for docker compose(tested on Mac M1)
Make fixes that allows to run airflow dags in pycharm debugger on Mac M1
* fix static checks
* fix linter error
* fix unexpected identation
---------
Co-authored-by: Shahar Epstein <60...@users.noreply.github.com>
---
docs/apache-airflow/howto/docker-compose/index.rst | 7 ++++++-
docs/apache-airflow/img/docker-compose-pycharm.png | Bin 0 -> 59560 bytes
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/docs/apache-airflow/howto/docker-compose/index.rst b/docs/apache-airflow/howto/docker-compose/index.rst
index b617ba1cc90..96ec9b53e3a 100644
--- a/docs/apache-airflow/howto/docker-compose/index.rst
+++ b/docs/apache-airflow/howto/docker-compose/index.rst
@@ -379,7 +379,7 @@ Steps:
environment:
<<: *airflow-common-env
user: "50000:0"
- entrypoint: ["bash"]
+ entrypoint: [ "/bin/bash", "-c" ]
.. note::
@@ -398,6 +398,11 @@ Steps:
:alt: Configuring the container's Python interpreter in PyCharm, step diagram
Building the interpreter index might take some time.
+3) Add ``exec`` to docker-compose/command and actions in python service
+
+.. image:: /img/docker-compose-pycharm.png
+ :alt: Configuring the container's Python interpreter in PyCharm, step diagram
+
Once configured, you can debug your Airflow code within the container environment, mimicking your local setup.
diff --git a/docs/apache-airflow/img/docker-compose-pycharm.png b/docs/apache-airflow/img/docker-compose-pycharm.png
new file mode 100644
index 00000000000..30e459ddb4f
Binary files /dev/null and b/docs/apache-airflow/img/docker-compose-pycharm.png differ