Base configuration files to generate a Docker container image that add InformixPDO support to a Basic PHP image.
You can use this to save time when you need a PHP+InformixPDO image.
To generate the image is necessary to complete these steps:
-
Download the CSDK and the PDO souce code. Put both into the
informix
directory:- The Informix Client SDK, from IBM: Informix CSDK
- The PDO sources from
pecl.php.net
: PDO_INFORMIX
-
In the
informix/slqhosts
file change the stringdemo_server
to match the Informix server name. -
Review the files in the
scripts
directory and edit properly, focusing in the first lines. -
Execute
python -m SimpleHTTPServer
in the same directory where this file is located. -
Build the image:
docker build -t ifxpdo .
-
When containers are to be created, note that you must set the Infomix server IP:
docker run -d -p 80:80 -v /var/www/html:/var/www/html --add-host ifxserver:192.168.0.2 ifxpdo
.