If you’re running Astronomer v0.7.5, we do have a Python 2 image that you can use.
-
Replace our default image with add the following in your Dockerfile:
FROM astronomerio/ap-airflow-python2:0.7.5-1.9.0-onbuild
-
Rebuild the image
- Run
astro airflow stop
andastro airflow start
Note: You don’t have to rebuild the image to commit code changes to your dag
files, for example, but you do have to have to anytime you make changes to requirements.txt
, packages.txt
, or your Dockerfile).
Important Note: While Astronomer currently supports Python 2, we’d recommend migrating to Python 3 as soon as possible, as the Airflow community just voted to approve dropping python 2 support with the Airflow 2.0 release.
https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-3+Drop+support+for+Python+2