From b30802c59b81272d92ffefc801b6c631619d32c7 Mon Sep 17 00:00:00 2001 From: Diego Quintana Date: Thu, 21 Sep 2023 18:52:10 +0200 Subject: [PATCH] Resolve "Problema amb permisos de usuari de contenidor per escriure a NAS" (et/somenergia-jardiner!14) * chore: bump format with black * fix: revert image used to that of harbor system permissions changed so that user 1000:1000 has write permissions at mounted volume at /repos/somenergia-jardiner --- dags/plant_production_datasets_dag.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dags/plant_production_datasets_dag.py b/dags/plant_production_datasets_dag.py index 61e5313e..24d3c308 100644 --- a/dags/plant_production_datasets_dag.py +++ b/dags/plant_production_datasets_dag.py @@ -80,12 +80,16 @@ def dbapi_to_dict(dbapi: str): api_version="auto", task_id="dbt_transformation_task", environment=environment, - docker_conn_id="somenergia_registry", - image="{}/{}-requirements:latest".format( - "{{ conn.somenergia_registry.host }}", repo_name + docker_conn_id="somenergia_harbor_dades_registry", + image="{}/{}-app:latest".format( + "{{ conn.somenergia_harbor_dades_registry.host }}", + repo_name, ), working_dir=f"/repos/{repo_name}/dbt_jardiner", - command="dbt run --profiles-dir config --target prod --select plant_production_hourly+", + command=( + "dbt run --profiles-dir config --target prod ", + "--select plant_production_hourly+", + ), docker_url=sampled_moll, mounts=[mount_nfs], mount_tmp_dir=False,