2017-12-07 04:19:02 +00:00
|
|
|
# NAME leenooks/php
|
2021-07-06 06:11:48 +00:00
|
|
|
# VERSION 8.0-fpm-db2
|
2017-12-07 04:19:02 +00:00
|
|
|
|
2021-07-06 06:11:48 +00:00
|
|
|
FROM registry.leenooks.net/leenooks/php:8.0-fpm-latest
|
2018-02-27 08:28:17 +00:00
|
|
|
|
2021-07-06 06:11:48 +00:00
|
|
|
# Install DB2
|
|
|
|
RUN apt-get update && apt-get install -y ksh \
|
2019-09-09 11:22:54 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2017-12-13 10:54:20 +00:00
|
|
|
|
2021-07-06 06:11:48 +00:00
|
|
|
RUN mkdir /opt/ibm && cd /opt/ibm \
|
|
|
|
&& curl -L https://yum.leenooks.net/docker/src/db2/v11.5.6_linuxx64_dsdriver.tar.gz | tar xzf - \
|
|
|
|
&& /opt/ibm/dsdriver/installDSDriver \
|
|
|
|
&& echo /opt/ibm/dsdriver/|pecl install ibm_db2 \
|
|
|
|
&& docker-php-ext-enable ibm_db2 \
|
2020-01-22 10:41:30 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2021-07-06 08:02:02 +00:00
|
|
|
|
|
|
|
# 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
|