diff --git a/ingestion/Dockerfile b/ingestion/Dockerfile index d338ddd61f9..6b6d8e1f574 100644 --- a/ingestion/Dockerfile +++ b/ingestion/Dockerfile @@ -53,6 +53,14 @@ RUN if [[ $(uname -m) == "arm64" || $(uname -m) == "aarch64" ]]; \ ENV LD_LIBRARY_PATH=/instantclient +# Install DB2 OAccess Driver +RUN if [[ $(uname -m) == "x86_64" ]]; \ + then \ + curl https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/ibmi-acs-1.1.0.list | tee /etc/apt/sources.list.d/ibmi-acs-1.1.0.list \ + && apt update \ + && apt install ibm-iaccess; \ + fi + # Required for Starting Ingestion Container in Docker Compose COPY --chown=airflow:0 --chmod=775 ingestion/ingestion_dependency.sh /opt/airflow # Required for Ingesting Sample Data diff --git a/ingestion/Dockerfile.ci b/ingestion/Dockerfile.ci index 23736c7e324..6865decfd27 100644 --- a/ingestion/Dockerfile.ci +++ b/ingestion/Dockerfile.ci @@ -54,6 +54,14 @@ RUN if [[ $(uname -m) == "arm64" || $(uname -m) == "aarch64" ]]; \ ENV LD_LIBRARY_PATH=/instantclient +# Install DB2 OAccess Driver +RUN if [[ $(uname -m) == "x86_64" ]]; \ + then \ + curl https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/ibmi-acs-1.1.0.list | tee /etc/apt/sources.list.d/ibmi-acs-1.1.0.list \ + && apt update \ + && apt install ibm-iaccess; \ + fi + # Required for Starting Ingestion Container in Docker Compose # Provide Execute Permissions to shell script COPY --chown=airflow:0 --chmod=775 ingestion/ingestion_dependency.sh /opt/airflow diff --git a/ingestion/operators/docker/Dockerfile b/ingestion/operators/docker/Dockerfile index 15937742cc0..4fce68c56de 100644 --- a/ingestion/operators/docker/Dockerfile +++ b/ingestion/operators/docker/Dockerfile @@ -59,6 +59,14 @@ RUN if [[ $(uname -m) == "arm64" || $(uname -m) == "aarch64" ]]; \ ENV LD_LIBRARY_PATH=/instantclient +# Install DB2 OAccess Driver +RUN if [[ $(uname -m) == "x86_64" ]]; \ + then \ + curl https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/ibmi-acs-1.1.0.list | tee /etc/apt/sources.list.d/ibmi-acs-1.1.0.list \ + && apt update \ + && apt install ibm-iaccess; \ + fi + WORKDIR ingestion/ # Required for Airflow DockerOperator, as we need to run the workflows from a `python main.py` command in the container. diff --git a/ingestion/operators/docker/Dockerfile.ci b/ingestion/operators/docker/Dockerfile.ci index 8aab90e9a1a..badf23a59c8 100644 --- a/ingestion/operators/docker/Dockerfile.ci +++ b/ingestion/operators/docker/Dockerfile.ci @@ -59,6 +59,14 @@ RUN if [[ $(uname -m) == "arm64" || $(uname -m) == "aarch64" ]]; \ ENV LD_LIBRARY_PATH=/instantclient +# Install DB2 OAccess Driver +RUN if [[ $(uname -m) == "x86_64" ]]; \ + then \ + curl https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/ibmi-acs-1.1.0.list | tee /etc/apt/sources.list.d/ibmi-acs-1.1.0.list \ + && apt update \ + && apt install ibm-iaccess; \ + fi + WORKDIR ingestion/ # For the dev build, we copy all files diff --git a/openmetadata-docs/content/v1.5.x-SNAPSHOT/connectors/database/db2/index.md b/openmetadata-docs/content/v1.5.x-SNAPSHOT/connectors/database/db2/index.md index db4b1dd7f6d..35396050ebe 100644 --- a/openmetadata-docs/content/v1.5.x-SNAPSHOT/connectors/database/db2/index.md +++ b/openmetadata-docs/content/v1.5.x-SNAPSHOT/connectors/database/db2/index.md @@ -88,7 +88,12 @@ Executing the profiler workflow or data quality tests, will require the user to - **database**: Database of the data source. - **Host and Port**: Enter the fully qualified hostname and port number for your DB2 deployment in the Host and Port field. -Note: In case you are using Db2 for IBM i, then from advanced config you need choose the `ibmi` scheme. +{% note %} +If you are using DB2 for IBM i: + +- From advanced config you need to chose `ibmi` scheme +- In Host and Port you should not add the Port Number. +{% /note %} {% partial file="/v1.5/connectors/database/advanced-configuration.md" /%}