Add PDO ODBC

This commit is contained in:
Deon George 2021-07-06 18:02:02 +10:00
parent 56755bbaaa
commit 5baf89e5e3

View File

@ -14,3 +14,8 @@ RUN mkdir /opt/ibm && cd /opt/ibm \
&& echo /opt/ibm/dsdriver/|pecl install ibm_db2 \ && echo /opt/ibm/dsdriver/|pecl install ibm_db2 \
&& docker-php-ext-enable ibm_db2 \ && docker-php-ext-enable ibm_db2 \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install PDO ODBC
RUN mkdir -p /home/db2inst1 && ln -s /opt/ibm/dsdriver /home/db2inst1/sqllib \
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=ibm-db2 \
&& docker-php-ext-install pdo_odbc