-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 807 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ifneq (,$(wildcard ./.env))
include .env
export
endif
venv:
rm -rf .venv;
python3 -m venv .venv && \
source .venv/bin/activate && \
pip install -r requirements.txt -U;
build:
docker compose build;
cd metabase/plugins \
&& curl -LO https://github.com/MotherDuck-Open-Source/metabase_duckdb_driver/releases/download/$(DUCK_DB_DRIVER_VERSION)/duckdb.metabase-driver.jar;
up:
docker compose up -d --force-recreate;
logs:
docker compose logs -f -n 10;
down:
docker compose down -v;
run-dbt:
dbt run --project-dir dbt --profiles-dir dbt;
dbt-metabase:
dbt-metabase --config-path dbt/dbt_metabase_config.yml models;
lint:
cd dbt && sqlfluff lint;
requirements:
python3 -m venv .venv && \
source .venv/bin/activate && \
pip install pip-tools && \
pip-compile requirements.in;