Skip to content

Commit

Permalink
Fix instruction for docker compose(tested on Mac M1) (#43119)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
Udbv and shahar1 authored Oct 23, 2024
1 parent 9da6fc3 commit d725cf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/apache-airflow/howto/docker-compose/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ Steps:
environment:
<<: *airflow-common-env
user: "50000:0"
entrypoint: ["bash"]
entrypoint: [ "/bin/bash", "-c" ]
.. note::

Expand All @@ -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.


Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d725cf6

Please sign in to comment.