Public Repository

Last pushed: 2 years ago
Short Description
FROM php:5.5.32-apache with ibm_db2 connector for DB2 database.
Full Description

IBM DB2, Cloudscape and Apache Derby support with Module release 1.9.7 for PHP.

Docker PHP-APACHE with the PECL ibm_db2 module configured.

FROM php:5.5.32-apache

ADD /ibm_data_server_driver_package_linuxx64_v10.5.tar.gz /opt/ibm/

RUN      export IBM_DB_HOME=/opt/ibm/dsdriver && \
         apt-get update && apt-get -y install php-pear ksh zip && \
         ksh /opt/ibm/dsdriver/installDSDriver && \
         env IBM_DB_HOME=/opt/ibm/dsdriver && \
         pecl install ibm_db2 && \
         echo "" > /usr/local/etc/php/conf.d/ibm_db2.ini

How to use this image.

Run PHP in conjunction with Apache httpd. Conveniently, there's a version of the PHP container that's packaged with the Apache web server.

Without a Dockerfile

If you don't want to include a Dockerfile in your project, it is sufficient to do the following:

$ docker run -d -p 80:80 --name my-apache-php-db2 -v "$PWD":/var/www/html oems/apache-php-ibm_db2
Docker Pull Command