To set up the development environment:
-
docker-compose up -d postgres -
docker-compose up -d airflow37# or other version -
docker logs -f airflow_airflow37_1 -
Wait until you see "Installation ready. Start doing nothing..."
-
docker exec -it airflow_airflow37_1 bash -
You're good to go, e.g.:
airflow webserverairflow schedulernosetests tests/testfile.py:Class.testname -s
Note: Postgres image only supports one database at a time (without hacking), thus one development environment at a time. So bring only a single Airflow instance up with this script.