Skip to content

Commit a3fee6e

Browse files
Merge pull request #35 from Sonnet-Scripts/onthemarkdata-patch-1
Added dbt docs serve
2 parents bc25357 + 0a6fe45 commit a3fee6e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"8888": {
2525
"label": "JupyterLab"
2626
},
27-
"8080": {
27+
"8070": {
2828
"label": "pgAdmin"
2929
},
3030
"9001": {
@@ -34,6 +34,6 @@
3434
"label": "Postgres"
3535
}
3636
},
37-
"forwardPorts": [8888, 8080, 9001, 5432],
37+
"forwardPorts": [8888, 8070, 9001, 5432],
3838
"postCreateCommand": "make run-all-data-pipelines"
39-
}
39+
}

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ dbt-compile:
229229
dbt-docs-generate:
230230
@docker compose exec dbtbase /venv/bin/dbt docs generate --project-dir /apps/dbt_project
231231

232+
# Serve dbt documentation
233+
dbt-docs-serve:
234+
@docker compose exec dbtbase /venv/bin/dbt docs serve --project-dir /apps/dbt_project
235+
232236
# Verify dbt transformed data in DuckDB
233237
verify-dbt:
234238
@docker compose exec dbtbase /usr/local/bin/duckdb /apps/dbt.duckdb \
235-
-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;"
239+
-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;"

0 commit comments

Comments
 (0)