Install ibm-db-sa if not ARM (#11798)

This commit is contained in:
Pere Miquel Brull 2023-05-30 07:06:48 +02:00 committed by GitHub
parent e02fc231da
commit 7ff00d399e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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