mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-01 11:52:12 +00:00
Install ibm-db-sa if not ARM (#11798)
This commit is contained in:
parent
e02fc231da
commit
7ff00d399e
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user