diff --git a/ingestion/Dockerfile b/ingestion/Dockerfile index b2c40eea74b..33a879cf07e 100644 --- a/ingestion/Dockerfile +++ b/ingestion/Dockerfile @@ -77,6 +77,12 @@ ARG INGESTION_DEPENDENCY="all" RUN pip install --upgrade pip RUN pip install "openmetadata-managed-apis==1.0.0.0.dev0" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.3.3/constraints-3.9.txt" RUN pip install "openmetadata-ingestion[${INGESTION_DEPENDENCY}]==1.0.0.0.dev0" + +# Temporary workaround for https://github.com/open-metadata/OpenMetadata/issues/9593 +ARG TARGETPLATFORM +RUN echo "Image built for $TARGETPLATFORM" > /opt/airflow/platform.log +RUN if [ "$TARGETPLATFORM" != "linux/arm64" ]; then pip install "ibm-db-sa~=0.4"; fi; + # bump python-daemon for https://github.com/apache/airflow/pull/29916 RUN pip install "python-daemon>=3.0.0" # remove all airflow providers except for docker diff --git a/ingestion/Dockerfile.ci b/ingestion/Dockerfile.ci index 09e5cf018d0..872011bd025 100644 --- a/ingestion/Dockerfile.ci +++ b/ingestion/Dockerfile.ci @@ -85,6 +85,11 @@ WORKDIR /home/airflow/ingestion ARG INGESTION_DEPENDENCY="all" RUN pip install ".[${INGESTION_DEPENDENCY}]" +# Temporary workaround for https://github.com/open-metadata/OpenMetadata/issues/9593 +ARG TARGETPLATFORM +RUN echo "Image built for $TARGETPLATFORM" > /opt/airflow/platform.log +RUN if [ "$TARGETPLATFORM" != "linux/arm64" ]; then pip install "ibm-db-sa~=0.4"; fi; + # bump python-daemon for https://github.com/apache/airflow/pull/29916 RUN pip install "python-daemon>=3.0.0" diff --git a/ingestion/operators/docker/Dockerfile b/ingestion/operators/docker/Dockerfile index 9fe9baf990b..e11aa0ecb04 100644 --- a/ingestion/operators/docker/Dockerfile +++ b/ingestion/operators/docker/Dockerfile @@ -68,6 +68,12 @@ RUN pip install --upgrade pip ARG INGESTION_DEPENDENCY="all" RUN pip install --upgrade "openmetadata-ingestion[airflow]==1.0.0.0.dev0" RUN pip install --upgrade "openmetadata-ingestion[${INGESTION_DEPENDENCY}]==1.0.0.0.dev0" + +# Temporary workaround for https://github.com/open-metadata/OpenMetadata/issues/9593 +ARG TARGETPLATFORM +RUN echo "Image built for $TARGETPLATFORM" > /opt/airflow/platform.log +RUN if [ "$TARGETPLATFORM" != "linux/arm64" ]; then pip install "ibm-db-sa~=0.4"; fi; + # Uninstalling psycopg2-binary and installing psycopg2 instead # because the psycopg2-binary generates a architecture specific error # while authrenticating connection with the airflow, psycopg2 solves this error diff --git a/ingestion/operators/docker/Dockerfile-dev b/ingestion/operators/docker/Dockerfile-dev index 4e210ee9d4b..12d456e0e13 100644 --- a/ingestion/operators/docker/Dockerfile-dev +++ b/ingestion/operators/docker/Dockerfile-dev @@ -79,6 +79,11 @@ ARG INGESTION_DEPENDENCY="all" RUN pip install --upgrade ".[airflow]" RUN pip install --upgrade ".[${INGESTION_DEPENDENCY}]" +# Temporary workaround for https://github.com/open-metadata/OpenMetadata/issues/9593 +ARG TARGETPLATFORM +RUN echo "Image built for $TARGETPLATFORM" > /opt/airflow/platform.log +RUN if [ "$TARGETPLATFORM" != "linux/arm64" ]; then pip install "ibm-db-sa~=0.4"; fi; + # Uninstalling psycopg2-binary and installing psycopg2 instead # because the psycopg2-binary generates a architecture specific error # while authrenticating connection with the airflow, psycopg2 solves this error