-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ed5e21
commit 3da10dd
Showing
10 changed files
with
36 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,25 @@ | ||
.DEFAULT_GOAL := run | ||
|
||
IMAGE_NAME := davidgasquez/datadex:v1.0.0 | ||
|
||
run: | ||
dagster asset materialize --select \* -m datadex.dag; | ||
dagster asset materialize --select \* -m datadex.dag | ||
|
||
dev: | ||
dagster dev -m datadex.dag | ||
|
||
.PHONY: docs | ||
preview: | ||
quarto preview | ||
|
||
docs: | ||
cd dbt && dbt docs generate --profiles-dir . | ||
mkdir -p dbt/target/docs | ||
cp dbt/target/*.json dbt/target/index.html dbt/target/graph.gpickle dbt/target/docs/ | ||
|
||
quarto: docs | ||
render: docs | ||
quarto render | ||
quarto render README.md -M output-file:index | ||
cp -r dbt/target/docs/ .quarto/output/docs | ||
|
||
preview: | ||
quarto preview | ||
|
||
clean: | ||
dbt clean --project-dir dbt; | ||
rm -rf data/* output .quarto target dbt_packages | ||
|
||
rill: | ||
curl -s https://cdn.rilldata.com/install.sh | bash | ||
rill start ~/rill | ||
|
||
build: | ||
docker build -t $(IMAGE_NAME) -t davidgasquez/datadex:latest . | ||
|
||
docker-run: | ||
docker run -it --rm -u vscode -e DAGIT_HOST=0.0.0.0 -p 3000:3000 \ | ||
-v $(PWD):/workspaces/datadex \ | ||
--env-file .env \ | ||
$(IMAGE_NAME) /bin/bash | ||
|
||
push: | ||
docker push $(IMAGE_NAME) | ||
rm -rf data/*.parquet data/*.duckdb | ||
rm -rf .quarto | ||
rm -rf dbt/target dbt/dbt_packages dbt/logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
name: "datadex" | ||
version: "1.0.0" | ||
name: datadex | ||
version: 1.0.0 | ||
config-version: 2 | ||
|
||
profile: "default" | ||
profile: default | ||
|
||
target-path: "target" | ||
clean-targets: | ||
- "logs" | ||
- "target" | ||
- "database" | ||
- "dbt_packages" | ||
target-path: target | ||
|
||
models: | ||
datadex: | ||
+materialized: external | ||
+materialized: table |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters