You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lately, I've been trying to kickstart with my personal Airflow instance using your template, but had to upgrade it to 2.2.5. Successfully, I've succeeded doing so by modifying Dockerfile, that I'm sharing below. Maybe that will be useful when you'd decide to upgrade template
FROM apache/airflow:2.2.5
#Install Make pre-requisites
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential
USER airflow
#Install additional dependencies
COPY Makefile Makefile
COPY airflow.requirements.txt airflow.requirements.txt
RUN make internal-install-airflow
RUN make internal-install-deps
Personally, I've found a little bit difficult to understand code behind make internal-install-airflow component, so I'm putting additional Airflow modules into airflow.requirements.txt file, but I'm pretty sure that this will work too after providing appropriate airflow and python version in Makefile.
The text was updated successfully, but these errors were encountered:
Hey @kijewskimateusz thanks for providing your solution for upgrading Airflow.
When I upgraded to Airflow 2.2.3 a couple of months ago, all I had to do was update AIRFLOW_VERSION in the Makefile and then rebuild everything.
No changes in a Dockerfile were necessary, or am I missing something?
I have been following this Airflow documentation page, which suggests to use already published Apache Airflow image, if you aim to extend image with additional modules. I can see that approach that repository author has taken is described in Customizing the image section.
I may be incorrect due to various factors, so please do not take me as single source of truth.
Hello!
Lately, I've been trying to kickstart with my personal Airflow instance using your template, but had to upgrade it to 2.2.5. Successfully, I've succeeded doing so by modifying
Dockerfile
, that I'm sharing below. Maybe that will be useful when you'd decide to upgrade templatePersonally, I've found a little bit difficult to understand code behind make
internal-install-airflow
component, so I'm putting additional Airflow modules intoairflow.requirements.txt
file, but I'm pretty sure that this will work too after providing appropriate airflow and python version in Makefile.The text was updated successfully, but these errors were encountered: