Uncategorized

Docker – PHP Apache MSSQL driver ubuntu 16.04

Source: gjuniioor/php-sqlsrv – Docker Image | Docker Hub

PHP-SQLSRV

About

I need to create this image because I use ArchLinux and a project need use SQLServe and Laravel. Laravel don’t work as well with dblib, so I need MS SQLSrv and MS ODBC drivers.

Here are a blog post (in portuguese (Brazil)) explain the case.

Softs

In this image there is installed some softwares to help your development, like Git, cURL, Apache and Composer.

Tags and softs versions

The name of the version is the PHP Version.

Docker file link: gjuniioor/php-sqlsrv Dockerfile | Docker Hub

Image:

docker pull gjuniioor/php-sqlsrv

Run

$ docker run -d -p 80:80 -v projeto/laravel:/var/www/html gjuniioor/php-sqlsrv:7.0

And go to localhost.

Bugs, Questions and Contribution

Has a bug found? Please, open a Issue, a Pull Request or contact me: @gjuniioor.

Similar Posts