forked from wmorin/docker-airflow-1
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
70 lines (50 loc) · 1.46 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
SERVICE = "scheduler"
TITLE = "Airflow Containers"
FILE = "docker-compose-LocalExecutor.yml"
.PHONY: run
build:
docker build -t docker-airflow .
docker tag docker-airflow-ascent:latest swapniel99/docker-airflow:latest
up:
@echo "Starting $(TITLE)"
docker-compose -f $(FILE) up -d
upf:
@echo "Starting $(TITLE)"
docker-compose -f $(FILE) up
down:
@echo "Stopping $(TITLE)"
docker-compose -f $(FILE) down
start:
@echo "Starting $(TITLE)"
docker-compose -f $(FILE) start
stop:
@echo "Stopping $(TITLE)"
docker-compose -f $(FILE) stop
restart:
@echo "Restarting $(TITLE)"
docker-compose -f $(FILE) restart
downup: down print-newline up
run:
docker-compose -f $(FILE) run --rm --entrypoint='' $(SERVICE) bash
runr:
docker-compose -f $(FILE) run --rm --entrypoint='' -u root $(SERVICE) bash
bash:
docker-compose -f $(FILE) exec $(SERVICE) bash
bashr:
docker-compose -f $(FILE) exec -u root $(SERVICE) bash
logs:
docker-compose -f $(FILE) logs --tail 50 --follow $(SERVICE)
conf:
docker-compose -f $(FILE) config
initdb:
docker-compose -f $(FILE) run --rm $(SERVICE) initdb
upgradedb:
docker-compose -f $(FILE) run --rm $(SERVICE) upgradedb
resetdb:
docker-compose -f $(FILE) run --rm $(SERVICE) resetdb
rbacadmin:
# Change user details and password after login if using RBAC mode.
docker-compose -f $(FILE) exec webserver airflow create_user -r Admin -u admin -e [email protected] -f Firstname -l Lastname -p admin123
print-newline:
@echo ""
@echo ""