-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 877 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
AIRFLOW := airflow
VENV := .venv
BIN := $(VENV)/bin
PRE_COMMIT := $(BIN)/pre-commit
bootstrap:
@poetry install
@$(PRE_COMMIT) install
docker-pull:
@docker pull bitnami/redis:6.0
@docker pull bitnami/postgresql:13.1.0
@docker pull bitnami/airflow-scheduler:1.10.13
@docker pull bitnami/airflow-worker:1.10.13
@docker pull bitnami/airflow:1.10.13
docker-build:
@docker build . -f frontend/Dockerfile -t cs-data-ingestion:frontend
docker-build-dev:
@docker build . -f frontend/Dockerfile-dev -t cs-data-ingestion:frontend
clean:
@find . -type d -name '.mypy_cache' -exec rm -rf {} +
@find . -type d -name '__pycache__' -exec rm -rf {} +
@find . -type d -name '*pytest_cache*' -exec rm -rf {} +
@find . -type f -name "*.py[co]" -exec rm -rf {} +
clean-all: clean
@rm -r $(VENV)
format: clean
@poetry run black $(AIRFLOW)
lint:
@poetry run flake8 $(AIRFLOW)