From 0290142bf442badfcdf67ea3207d7df234077965 Mon Sep 17 00:00:00 2001 From: mycontroller Date: Tue, 23 May 2017 18:58:58 +0800 Subject: [PATCH] Dockerfile-56 fill missing MSSQL section --- php-fpm/Dockerfile-56 | 12 ++++++++++++ workspace/Dockerfile-56 | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 1ce3276f..cad89a5d 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -246,6 +246,18 @@ RUN if [ ${INSTALL_LDAP} = true ]; then \ docker-php-ext-install ldap \ ;fi +##################################### +# SQL SERVER: +##################################### +ARG INSTALL_MSSQL=false +ENV INSTALL_MSSQL ${INSTALL_MSSQL} + +RUN if [ ${INSTALL_MSSQL} = true ]; then \ + apt-get -y install php5-sybase freetds-bin && \ + cp /usr/lib/php5/20131226/*.so /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ && \ + docker-php-ext-enable mssql pdo pdo_dblib \ +;fi + # #-------------------------------------------------------------------------- # Final Touch diff --git a/workspace/Dockerfile-56 b/workspace/Dockerfile-56 index 0e7962cb..f945358d 100644 --- a/workspace/Dockerfile-56 +++ b/workspace/Dockerfile-56 @@ -400,6 +400,17 @@ RUN if [ ${INSTALL_LINUXBREW} = true ]; then \ echo 'export LD_LIBRARY_PATH="$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH"' >> ~/.bashrc \ ;fi +##################################### +# SQL SERVER: +##################################### +ARG INSTALL_MSSQL=false +ENV INSTALL_MSSQL ${INSTALL_MSSQL} + +RUN if [ ${INSTALL_MSSQL} = true ]; then \ + apt-get -y install php5.6-sybase freetds-bin freetds-common libsybdb5 \ + && echo "extension=pdo_dblib.so" > /etc/php/5.6/cli/conf.d/20-pdo_dblib.ini \ +;fi + ##################################### # Minio: #####################################