Change ODBC to PDO
This commit is contained in:
parent
5baf89e5e3
commit
45cf2cb52a
17
Dockerfile
17
Dockerfile
@ -15,7 +15,18 @@ RUN mkdir /opt/ibm && cd /opt/ibm \
|
||||
&& docker-php-ext-enable ibm_db2 \
|
||||
&& 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 \
|
||||
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=ibm-db2 \
|
||||
&& docker-php-ext-install pdo_odbc
|
||||
&& cd /tmp \
|
||||
&& 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
|
||||
|
Loading…
Reference in New Issue
Block a user