-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
41 lines (28 loc) · 1014 Bytes
/
makefile
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
40
41
build:
docker compose build
shell:
docker compose run --rm app /bin/bash
etl_local:
docker compose run --rm app python -m dbcp.cli --etl
etl_bq:
docker compose run --rm app python -m dbcp.cli --etl --upload-to-bigquery
data_mart_local:
docker compose run --rm app python -m dbcp.cli --data-mart
data_mart_bq:
docker compose run --rm app python -m dbcp.cli --data-mart --upload-to-bigquery
all_local:
docker compose run --rm app python -m dbcp.cli --data-mart --etl
all_bq:
docker compose run --rm app python -m dbcp.cli --data-mart --etl --upload-to-bigquery
sql_shell:
docker compose run --rm postgres bash -c 'psql -U $$POSTGRES_USER -h $$POSTGRES_HOST $$POSTGRES_DB'
pudl_db:
docker compose run --rm app bash -c 'sqlite3 /app/data/data_cache/$$PUDL_VERSION/pudl_data/sqlite/pudl.sqlite'
test:
docker compose run --rm app pytest --ignore=input/w
clean:
docker compose down -v
update_conda:
conda env update --file environment.yml --name dbcp-dev --prune
jupyter_lab:
docker compose up