-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (24 loc) · 901 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
# airflow version to operate with
version =
version = $(version)
prepare:
/opt/homebrew/bin/colima start --cpu 4 --memory 8
# Build image
compile: prepare
/opt/homebrew/bin/docker build -t airflow_local_dev_$(version) ./airflow_$(version)
# Start containers from build image
start: compile
/opt/homebrew/bin/docker-compose -f "docker-compose.airflow_$(version).yml" -p airflow_local_dev_$(version) up -d
# Stop containers and close the app
stop:
/opt/homebrew/bin/docker-compose -f "docker-compose.airflow_$(version).yml" -p airflow_local_dev_$(version) down
quit:
/opt/homebrew/bin/colima stop
# Remove all compiled staff
clean:
# || true is used for suppress errors if occured
docker rmi airflow_local_dev_$(version) || true
rm -R ./logs || true
rm -R ./metadata_db || true
find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
find . | grep -E "(/logs$)" | xargs rm -rf