Skip to content
 
 

Latest commit

 

History

72 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-php-mssql

Docker images based on the official Docker PHP images with the Microsoft SQL Server Driver already installed.

The images are built and retagged based on their corresponding upstream once a week at night.

Many thanks to Namoshek. Once I've confirmed that version 8.5 works correctly after testing, I'll submit a pull request to his repository.

Usage

You can pull one of the images with docker pull namoshek/php-mssql:<tag>. To run a container with an image, you can also use docker run namoshek/php-mssql:<tag> directly.

Available Versions

For the moment, the primary goal of this repository is to support the following configurations:

  • PHP 8.5 (based on Alpine Linux) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: dyart1980/php-mssql:8.5-fpm-alpine
  • PHP 8.4 (based on Alpine Linux) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With nano, nodejs, npm, yarn and composer added to the CLI version
    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: namoshek/php-mssql:8.4-cli-alpine, namoshek/php-mssql:8.4-fpm-alpine
    • Tags: namoshek/php-mssql:8.4-cli-alpine-swoole, namoshek/php-mssql:8.4-fpm-alpine-swoole (with Swoole PHP extension)
  • PHP 8.4 (based on Debian Bookworm) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With nano, nodejs, npm, yarn and composer added to the CLI version
    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: namoshek/php-mssql:8.4-cli, namoshek/php-mssql:8.4-fpm
  • PHP 8.3 (based on Alpine Linux) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With nano, nodejs, npm, yarn and composer added to the CLI version
    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: namoshek/php-mssql:8.3-cli-alpine, namoshek/php-mssql:8.3-fpm-alpine
    • Tags: namoshek/php-mssql:8.3-cli-alpine-swoole, namoshek/php-mssql:8.3-fpm-alpine-swoole (with Swoole PHP extension)
  • PHP 8.3 (based on Debian Bookworm) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With nano, nodejs, npm, yarn and composer added to the CLI version
    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: namoshek/php-mssql:8.3-cli, namoshek/php-mssql:8.3-fpm
  • PHP 8.2 (based on Alpine Linux) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With nano, nodejs, npm, yarn and composer added to the CLI version
    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: namoshek/php-mssql:8.2-cli-alpine, namoshek/php-mssql:8.2-fpm-alpine
    • Tags: namoshek/php-mssql:8.2-cli-alpine-swoole, namoshek/php-mssql:8.2-fpm-alpine-swoole (with Swoole PHP extension)
  • PHP 8.2 (based on Debian Bookworm) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With nano, nodejs, npm, yarn and composer added to the CLI version
    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: namoshek/php-mssql:8.2-cli, namoshek/php-mssql:8.2-fpm
  • PHP 8.1 (based on Alpine Linux) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With nano, nodejs, npm, yarn and composer added to the CLI version
    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: namoshek/php-mssql:8.1-cli-alpine, namoshek/php-mssql:8.1-fpm-alpine
    • Tags: namoshek/php-mssql:8.1-cli-alpine-swoole, namoshek/php-mssql:8.1-fpm-alpine-swoole (with Swoole PHP extension)
  • PHP 8.1 (based on Debian Bookworm) + Microsoft ODBC Driver 18 + sqlsrv + pdo_sqlsrv (FPM and CLI)

    • With nano, nodejs, npm, yarn and composer added to the CLI version
    • With bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip as additional PHP extensions
    • With pcov as additional PHP extension on the CLI image
    • Tags: namoshek/php-mssql:8.1-cli, namoshek/php-mssql:8.1-fpm

The exact versions can vary from build to build. To see a list of all available tags, please have a look at the Docker Hub image page.

Discontinued Images

The following images are not built anymore, but old builds may still be available on Docker Hub (not recommended for production):

  • PHP 7.3 (based on Debian Stretch) + Microsoft ODBC Driver 17 + sqlsrv + pdo_sqlsrv (FPM and CLI)
  • PHP 7.4 (based on Debian Buster) + Microsoft ODBC Driver 17 + sqlsrv + pdo_sqlsrv (FPM and CLI)
  • PHP 8.0 (based on Alpine Linux) + Microsoft ODBC Driver 17 + sqlsrv + pdo_sqlsrv (FPM and CLI)
  • PHP 8.0 (based on Debian Buster) + Microsoft ODBC Driver 17 + sqlsrv + pdo_sqlsrv (FPM and CLI)

Configuration

To change the PHP configuration, have a look at the official PHP Docker image repository.

Building the Images locally

After cloning the repository, the images can be built locally using the following command:

docker build -t namoshek/php-mssql:<tag> <version>/<type>

Building the PHP 8.2 CLI image looks like this:

docker build -t namoshek/php-mssql:8.2-cli 8.2/cli

About

Docker images based on the official Docker PHP images with the Microsoft SQL Server Driver already installed

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages