Skip to content

Instantly share code, notes, and snippets.

@hechien
Created February 13, 2024 13:37
Show Gist options
  • Save hechien/9e3eea67e50a5a219d94afae0971b5b7 to your computer and use it in GitHub Desktop.
Save hechien/9e3eea67e50a5a219d94afae0971b5b7 to your computer and use it in GitHub Desktop.
PHP + PDO_IBM
FROM php:apache
RUN apt-get update
RUN apt-get -y upgrade
RUN apt install -y apt-utils build-essential
ENV IBM_DB_HOME=/opt/ibm/clidriver
ENV LD_LIBRARY_PATH="${IBM_DB_HOME}/lib"
RUN apt install -y apt-utils build-essential
RUN apt-get install -y libxml2-dev unixodbc-dev
RUN mkdir /opt/ibm
COPY ibm_db2/linuxx64_odbc_cli.tar.gz /opt/ibm/
RUN cd /opt/ibm && tar -zxvf linuxx64_odbc_cli.tar.gz
RUN echo "C_INCLUDE_PATH=vvv"
RUN echo C_INCLUDE_PATH
ENV C_INCLUDE_PATH=/opt/ibm/clidriver/include
RUN pecl install pdo_ibm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment