-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 1017 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
install_requirements:
pip install -r requirements.txt
load_data:
python loading/llm_earnings.py && python loading/forex.py && python loading/costofliving.py
dbt_init:
dbt deps --profiles-dir ./dbt --project-dir ./dbt && dbt seed --profiles-dir ./dbt --project-dir ./dbt
dbt_run:
dbt build --target prod --profiles-dir ./dbt --project-dir ./dbt
streamlit_app:
streamlit run streamlit/Home.py
init: load_data dbt_init dbt_run streamlit
local_build:
docker build -t local_image .
local_deploy:
docker run -p 8080:8080 -e ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} local_image
gcloud_build:
gcloud builds submit --tag gcr.io/expat-analytics/streamlit-app:latest --region europe-west1
gcloud_deploy:
gcloud run deploy expat-streamlit-app \
--image gcr.io/expat-analytics/streamlit-app:latest \
--max-instances 2 \
--concurrency 2 \
--region europe-west3 \
--allow-unauthenticated \
--set-env-vars ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} \
gcloud_delete:
gcloud run services delete expat-streamlit-app