From 41583a8bf16316e8e9feb2127d21d09a57a217f4 Mon Sep 17 00:00:00 2001 From: Diego Quintana Date: Mon, 2 Sep 2024 11:44:04 -0400 Subject: [PATCH] hotfix: bad reference in dbt_profiles_dir should reference inside the container instead of outside the container --- dags/dbt_test_quality_dset.py | 4 ++-- dags/dset_materialize_dag.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dags/dbt_test_quality_dset.py b/dags/dbt_test_quality_dset.py index 910b2b7..35dcc7d 100644 --- a/dags/dbt_test_quality_dset.py +++ b/dags/dbt_test_quality_dset.py @@ -115,8 +115,8 @@ def dbapi_to_dict(dbapi: str): "S3_SECRET_KEY": s3_secret_key, "S3_ENDPOINT": s3_endpoint, "DBT_PACKAGES_INSTALL_PATH": "/home/somenergia/.dbt/dbt_packages", - "DBT_PROFILES_DIR": "/opt/airflow/repos/somenergia-jardiner/dbt_jardiner/config", # noqa - "DBT_PROJECT_DIR": "/opt/airflow/repos/somenergia-jardiner/dbt_jardiner", + "DBT_PROFILES_DIR": "/repos/somenergia-jardiner/dbt_jardiner/config", + "DBT_PROJECT_DIR": "/repos/somenergia-jardiner/dbt_jardiner", } image = "harbor.somenergia.coop/dades/somenergia-jardiner-dbt-deps:latest" diff --git a/dags/dset_materialize_dag.py b/dags/dset_materialize_dag.py index 21650ee..fb00a82 100644 --- a/dags/dset_materialize_dag.py +++ b/dags/dset_materialize_dag.py @@ -93,8 +93,8 @@ def dbapi_to_dict(dbapi: str): "DBPORT": dbapi_dict["port"], "DBNAME": dbapi_dict["database"], "DBT_PACKAGES_INSTALL_PATH": "/home/somenergia/.dbt/dbt_packages", - "DBT_PROFILES_DIR": "/opt/airflow/repos/somenergia-jardiner/dbt_jardiner/config", # noqa - "DBT_PROJECT_DIR": "/opt/airflow/repos/somenergia-jardiner/dbt_jardiner", + "DBT_PROFILES_DIR": "/repos/somenergia-jardiner/dbt_jardiner/config", + "DBT_PROJECT_DIR": "/repos/somenergia-jardiner/dbt_jardiner", } dbt_transformation_task = DockerOperator(