Skip to content

Commit

Permalink
Resolve "Problema amb permisos de usuari de contenidor per escriure a…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
diegoquintanav committed Sep 21, 2023
1 parent 1e7c8ab commit b30802c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dags/plant_production_datasets_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b30802c

Please sign in to comment.