Fix Astro local bind mounts for src and dbt - #31
Merged
Merged
Conversation
Nested mounts under dags/ and include/ can appear empty inside containers on some Docker Desktop setups while inspect still shows correct binds. Mount beside those paths and set DBT_PROJECT_DIR to /usr/local/airflow/dbt. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
../srcand../dbtbeside Astro's existingdags/andinclude/mounts (/usr/local/airflow/srcand/usr/local/airflow/dbt) instead of nested under them.DBT_PROJECT_DIRto/usr/local/airflow/dbt.On some Docker Desktop setups (notably when the repo lives under
~/Desktop), nested overlay mounts can show correct binds indocker inspectwhile the path is empty inside the scheduler at task runtime — causingModuleNotFoundError: No module named 'src.ingestion'./usr/local/airflowis onsys.path, soimport srcresolves without nesting underdags/.Related team PRs
Test plan
astro dev kill && astro dev startfromdata/airflowls /usr/local/airflow/src/ingestionshows pipeline modulessrc.ingestion— noModuleNotFoundErrordbt debug/ parse from Airflow task withDBT_PROJECT_DIR=/usr/local/airflow/dbtMade with Cursor