-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
43 lines (34 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
.PHONY: init run test down
init:
docker-compose up -d postgres
docker-compose run --rm webserver airflow db init
web: init
docker-compose up webserver
scheduler:
docker-compose up scheduler
test: init
docker-compose run --rm webserver airflow tasks test multi_triggers gen_target_dag_run 20000101
docker-compose run --rm webserver airflow tasks test simple_trigger gen_target_dag_run 20000101
docker-compose run --rm webserver airflow tasks test trigger_returning_dagrun gen_target_dag_run 20000101
docker-compose run --rm webserver airflow tasks test trigger_with_context gen_target_dag_run 20000101
docker-compose run --rm webserver airflow tasks test trigger_with_custom_trigger_id gen_target_dag_run 20000101
docker-compose run --rm webserver airflow tasks test trigger_with_retries gen_target_dag_run 20000101
docker-compose run --rm webserver airflow tasks test trigger_with_external_sensor gen_target_dag_run 20000101
docker-compose run --rm webserver airflow tasks test trigger_with_multi_dagrun_sensor gen_target_dag_run 20000101
down:
docker-compose down
clean_wheels:
rm -rf ./dist/*
build_wheels: clean_wheels
python3 setup.py bdist_wheel
add-admin: init
docker-compose run --rm webserver airflow users create \
--username admin \
--firstname FIRST_NAME \
--lastname LAST_NAME \
--role Admin \
--email admin@example.org
release: build_wheels
pip install twine
python setup.py sdist
twine upload dist/*