Change ODBC to PDO

This commit is contained in:
Deon George 2021-07-07 12:21:21 +10:00
parent 5baf89e5e3
commit 45cf2cb52a

View File

@ -15,7 +15,18 @@ RUN mkdir /opt/ibm && cd /opt/ibm \
&& 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 # Install PDO IBM
RUN mkdir -p /home/db2inst1 && ln -s /opt/ibm/dsdriver /home/db2inst1/sqllib \ RUN mkdir -p /home/db2inst1 && ln -s /opt/ibm/dsdriver /home/db2inst1/sqllib \
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=ibm-db2 \ && cd /tmp \
&& docker-php-ext-install pdo_odbc && curl -L http://pecl.php.net/get/PDO_IBM-1.4.1.tgz | tar xzf - \
&& cd PDO_IBM-1.4.1 \
&& phpize && mkdir -p include/php/ext/pdo && cp *.h include/php/ext/pdo \
&& ln -s lib /home/db2inst1/sqllib/lib64 \
&& ./configure --with-pdo-ibm=/home/db2inst1/sqllib \
&& make install \
&& docker-php-ext-enable pdo_ibm \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
### Install PDO ODBC
#RUN docker-php-ext-configure pdo_odbc --with-pdo-odbc=ibm-db2 \
# && docker-php-ext-install pdo_odbc