Skip to content

Commit

Permalink
fix: replace usage of image main for dbt-deps (et/somenergia-jardiner…
Browse files Browse the repository at this point in the history
…!159)

Merge branch 'fix/bad-images-in-dags' into 'main'
  • Loading branch information
diegoquintanav committed Sep 12, 2024
2 parents 7aed68a + 71f329a commit 761061a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dags/plant_production_datasets_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,17 @@ def dbapi_to_dict(dbapi: str):
"DBHOST": dbapi_dict["host"],
"DBPORT": dbapi_dict["port"],
"DBNAME": dbapi_dict["database"],
"DBT_PACKAGES_INSTALL_PATH": "/home/somenergia/.dbt/dbt_packages",
"DBT_PROFILES_DIR": "/repos/somenergia-jardiner/dbt_jardiner/config",
"DBT_PROJECT_DIR": "/repos/somenergia-jardiner/dbt_jardiner",
}

dbt_transformation_task = DockerOperator(
api_version="auto",
task_id="dbt_transformation_task",
environment=environment,
docker_conn_id="somenergia_harbor_dades_registry",
image="{}/{}-main:latest".format(
image="{}/{}-dbt-deps:latest".format(
"{{ conn.somenergia_harbor_dades_registry.host }}",
repo_name,
),
Expand Down
4 changes: 3 additions & 1 deletion dags/plant_production_datasets_jardiner_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,16 @@ 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": "/repos/somenergia-jardiner/dbt_jardiner/config",
"DBT_PROJECT_DIR": "/repos/somenergia-jardiner/dbt_jardiner",
}

dbt_transformation_task = DockerOperator(
api_version="auto",
task_id="dbt_transformation_task__jardiner",
environment=environment,
docker_conn_id="somenergia_harbor_dades_registry",
image="{}/{}-main:latest".format(
image="{}/{}-dbt-deps:latest".format(
"{{ conn.somenergia_harbor_dades_registry.host }}",
repo_name,
),
Expand Down

0 comments on commit 761061a

Please sign in to comment.