-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathMakefile
29 lines (21 loc) · 1.2 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
install-requirements:
pip install -r requirements.txt
check-env-setup:
python -c 'from utils import check_environment_variables; check_environment_variables()';
cloudformation-validate: install-requirements check-env-setup
python -c 'from deploy_cloudformation import validate_templates; validate_templates()';
infra-deploy: cloudformation-validate
python -c 'from deploy_cloudformation import create_or_update_stacks; create_or_update_stacks(is_foundation=True)';
push-to-ecr:
python -c 'from deploy_docker import update_airflow_image; update_airflow_image()';
airflow-deploy: infra-deploy push-to-ecr
python -c 'from deploy_cloudformation import create_or_update_stacks; create_or_update_stacks(is_foundation=False)';
python -c 'from deploy_cloudformation import log_outputs; log_outputs()';
airflow-push-image: push-to-ecr
python -c 'from deploy_cloudformation import restart_airflow_ecs; restart_airflow_ecs()';
airflow-destroy:
python -c 'from deploy_cloudformation import destroy_stacks; destroy_stacks()';
airflow-local:
pip install cryptography
export AIRFLOW_FERNET_KEY=$(shell python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")
docker-compose up --build