Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"8888": {
"label": "JupyterLab"
},
"8080": {
"8070": {
"label": "pgAdmin"
},
"9001": {
Expand All @@ -34,6 +34,6 @@
"label": "Postgres"
}
},
"forwardPorts": [8888, 8080, 9001, 5432],
"forwardPorts": [8888, 8070, 9001, 5432],
"postCreateCommand": "make run-all-data-pipelines"
}
}
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ dbt-compile:
dbt-docs-generate:
@docker compose exec dbtbase /venv/bin/dbt docs generate --project-dir /apps/dbt_project

# Serve dbt documentation
dbt-docs-serve:
@docker compose exec dbtbase /venv/bin/dbt docs serve --project-dir /apps/dbt_project

# Verify dbt transformed data in DuckDB
verify-dbt:
@docker compose exec dbtbase /usr/local/bin/duckdb /apps/dbt.duckdb \
-c "SELECT 'staging.stg_claims' as model, COUNT(*) as row_count FROM staging.stg_claims UNION ALL SELECT 'marts.fct_claims_summary', COUNT(*) FROM marts.fct_claims_summary;"
-c "SELECT 'staging.stg_claims' as model, COUNT(*) as row_count FROM staging.stg_claims UNION ALL SELECT 'marts.fct_claims_summary', COUNT(*) FROM marts.fct_claims_summary;"