-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 1.05 KB
/
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
include env/.env.local
docker-start:
cp -r sls_lambda utilities dags
docker build . --tag pkt_afw_ext:latest
docker compose up airflow-init
docker compose up -d
docker-stop:
docker compose down -v
deploy-dev:
mv psycopg2-2 psycopg2
sls deploy --stage dev
mv psycopg2 psycopg2-2
run-trigger:
mv psycopg2 psycopg2-new
python3.9 scripts/trigger.py $(type)
mv psycopg2-new psycopg2
amount-update:
mv psycopg2 psycopg2-new
python3.9 scripts/amount_update.py
mv psycopg2-new psycopg2
load-nixer:
mv psycopg2 psycopg2-new
python3.9 scripts/nixer-offer-loader.py
mv psycopg2-new psycopg2
airflow-server:
ssh -i ${AIRFLOW_SERVER_ACCESS_KEY} ${AIRFLOW_SERVER}
ecr-update:
docker build . --tag peerkat-airflow:latest
docker tag peerkat-airflow:latest 366877760811.dkr.ecr.eu-west-2.amazonaws.com/peerkat-airflow:latest
aws ecr get-login-password --region eu-west-2 --profile peerkat | docker login --username AWS --password-stdin 366877760811.dkr.ecr.eu-west-2.amazonaws.com
docker push 366877760811.dkr.ecr.eu-west-2.amazonaws.com/peerkat-airflow:latest