Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions ingestion/operators/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ RUN if [ $(uname -m) = "arm64" || $(uname -m) = "aarch64" ]; \
ENV LD_LIBRARY_PATH=/instantclient

# Install DB2 iAccess 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
# The IBM repository approach is unreliable in CI environments, so we download the package directly
# Use dpkg --force-depends because the package declares old Debian package names (libodbc1, odbcinst1debian2)
# that don't exist in Debian 12, but the actual dependencies (unixodbc, odbcinst) are already installed
RUN if [ $(uname -m) = "x86_64" ]; then \
wget -q https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/main/binary-amd64/ibm-iaccess-1.1.0.13-1.0.amd64.deb \
-O /tmp/ibm-iaccess.deb && \
dpkg -i --force-depends /tmp/ibm-iaccess.deb && \
apt-get install -f -y --no-install-recommends && \
rm -f /tmp/ibm-iaccess.deb; \
fi

WORKDIR ingestion/

Expand Down
16 changes: 10 additions & 6 deletions ingestion/operators/docker/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ RUN if [ $(uname -m) = "arm64" ] | [ $(uname -m) = "aarch64" ]; \
ENV LD_LIBRARY_PATH=/instantclient

# Install DB2 iAccess 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
# The IBM repository approach is unreliable in CI environments, so we download the package directly
# Use dpkg --force-depends because the package declares old Debian package names (libodbc1, odbcinst1debian2)
# that don't exist in Debian 12, but the actual dependencies (unixodbc, odbcinst) are already installed
RUN if [ $(uname -m) = "x86_64" ]; then \
wget -q https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/main/binary-amd64/ibm-iaccess-1.1.0.13-1.0.amd64.deb \
-O /tmp/ibm-iaccess.deb && \
dpkg -i --force-depends /tmp/ibm-iaccess.deb && \
apt-get install -f -y --no-install-recommends && \
rm -f /tmp/ibm-iaccess.deb; \
fi

WORKDIR /ingestion

Expand Down
Loading