-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/airflow] airflow.extraPipPackages that require gcc #22677
Comments
I have this issue too with one of my dependencies I am trying to install with installRequirements as true (similar because both methods do a pip install) While I don't yet have a solution, I do know that there is discussion to add a way to add additional dependencies for the official apache/airflow image: apache/airflow#8872 |
fairly trivial to build manually I suppose with: ./breeze build-image
--production-image \
--extras "pyldap" \
--install-airflow-version 1.10.10 \
--python 3.6 I suppose. Too bad you can't add a hook in helm to build the image for certain |
Option 1: (probably won't work) However, I am not inclined to do this, as the main benefit of using the offical images is the prebuilt airflow, which is only really distributed in the official airflow images. Option 2: (Good for non-prod) Option 3: (recommended) FROM apache/airflow:1.10.10-python3.6
# install binary dependancies
RUN apt-get update \
&& apt-get -y install \
XXXX \
YYYY \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# install python dependancies
RUN pip install XXXXX |
doing something very similar to option 3, @thesuperzapper. |
I am in favor of option 3 too, and it is what the apache/airflow docker maintainers suggest. Basically if you need to add dependencies, build your own image and then use that image for the helm chart instead. I also take back my last comment because I linked to a discussion about adding a way to add dependencies at build time, but with helm charts we are running already built images so therefore that won't be of use to us. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
Describe the bug
There is an issue in stable/airflow with the
airflow.extraPipPackages
value where if you specify a pip package that requiresgcc
to install, the chart installation fails. I realize this is an shortcoming of the official Airflow image that removesgcc
which is what makes it "slim". Ideally we change the default image to includegcc
, but I haven't been able to find an official Airflow image that hasgcc
installed.Version of Helm and Kubernetes:
Which chart:
stable/airflow
What happened:
logs of
$AIRFLOW_WEB
when trying to install chart with valueairflow.extraPipPackages: [ "pyldap" ]
:What you expected to happen:
successfully install
How to reproduce it (as minimally and precisely as possible):
helm install --set "airflow.extraPipPackages[0]=pyldap" stable/airflow
Anything else we need to know:
The text was updated successfully, but these errors were encountered: