Giter Club home page Giter Club logo

docker-php-mssql's Introduction

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.

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.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 Bullseye) + 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 17 + 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 Buster) + Microsoft ODBC Driver 17 + 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
  • PHP 8.0 (based on Alpine Linux) + Microsoft ODBC Driver 17 + 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.0-cli-alpine, namoshek/php-mssql:8.0-fpm-alpine
    • Tags: namoshek/php-mssql:8.0-cli-alpine-swoole, namoshek/php-mssql:8.0-fpm-alpine-swoole (with Swoole PHP extension)
  • PHP 8.0 (based on Debian Buster) + Microsoft ODBC Driver 17 + 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.0-cli, namoshek/php-mssql:8.0-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.

Deprecated Images

The Dockerfiles of the following images are no longer updated but images are still built automatically once a week.

  • 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)

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.0 CLI image looks like this:

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

Contributing

If you want to contribute the sources for other PHP versions, I'll appreciate it. Please send a pull request.

License

The code is licensed under the MIT license.

docker-php-mssql's People

Contributors

namoshek avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.