yiisoft / yii2-docker

Official Docker images suitable for Yii 2.0
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
381 stars 202 forks source link

Add MsSQL extensions #142

Closed ruudboon closed 2 years ago

ruudboon commented 2 years ago

Would it be possible to add the MsSql extension to the default images?

schmunk42 commented 2 years ago

Don't think it really possible, since it's support is very limited, see https://github.com/mlocati/docker-php-extension-installer

And AFAIR it's also quite large.

But for 5.5 / 5.6 you should be able to install it by:

RUN install-php-extensions \
        mssql \
ruudboon commented 2 years ago

Should not be that hard for 7 or 8 (https://www.microsoft.com/en-us/sql-server/developer-get-started/php/ubuntu). I does create extra overhead, maybe we could add steps to the https://github.com/yiisoft/yii2-docker/blob/master/docs/install-extensions.md ?

schmunk42 commented 2 years ago

maybe we could add steps to the https://github.com/yiisoft/yii2-docker/blob/master/docs/install-extensions.md ?

sure, PR for docs welcome

Or you create a PR at mlocati's repo.