Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. To set up the development environment:
  2.  
  3. 1. `docker-compose up -d postgres`
  4. 2. `docker-compose up -d airflow37` # or other version
  5. 3. `docker logs -f airflow_airflow37_1`
  6. 4. Wait until you see "Installation ready. Start doing nothing..."
  7. 5. `docker exec -it airflow_airflow37_1 bash`
  8. 6. You're good to go, e.g.:
  9.  
  10. - `airflow webserver`
  11. - `airflow scheduler`
  12. - `nosetests tests/testfile.py:Class.testname -s`
  13.  
  14. ***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.***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement