I was wondering if it would be possible to add sqlsrv & pdo_sqlsrv extension to the container so it will work out of the box to connect to MSSQL Databases.
I've been trying to set this up myself but no success :)
Or maybe someone with more experience could point me in the right direction.
I though I could do this :
FROM wodby/php:7.2-4.9.0
USER root
RUN pecl install sqlsrv \
&& docker-php-ext-enable sqlsrv
RUN pecl install pdo_sqlsrv \
&& docker-php-ext-enable pdo_sqlsrv
RUN echo "extension= pdo_sqlsrv.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`\
RUN echo "extension= sqlsrv.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` \
Hi,
I was wondering if it would be possible to add sqlsrv & pdo_sqlsrv extension to the container so it will work out of the box to connect to MSSQL Databases.
I've been trying to set this up myself but no success :) Or maybe someone with more experience could point me in the right direction.
I though I could do this :