GithubHelp home page GithubHelp logo

piotrpazola / nginx-unit-1.20.0-php7.4-pdo-mysql Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 3 KB

Source of Docker custom build of NGINX Unit with PHP7.4 and PDO MYSQL support based on nginx/unit:1.20.0-minimal official image.

Home Page: https://hub.docker.com/r/piotrpazola/nginx-unit

Dockerfile 46.98% Shell 53.02%
nginx nginx-docker nginx-docker-image nginx-unit php74 php74-docker pdo pdo-mysql pdo-php

nginx-unit-1.20.0-php7.4-pdo-mysql's Introduction

NGINX Unit 1.27.0 with PHP7.4.30 and the newest PDO MYSQL and CURL support

Source of Docker custom built of NGINX Unit with PHP7.4 and PDO MYSQL support based on nginx/unit:1.27.0-minimal official image.

CHANGELOG

  • 06/2022: nginx unit has been upgraded from 1.24 to 1.27; php upgrade from 7.4.18 to 7.4.30; ca-certificates build fix to not purge the package

  • 06/2021: nginx unit has been upgraded from 1.20 to 1.24; php upgrade from 7.4.11 to 7.4.18; curl support added to PHP 7.4

Ready to use image on Docker Hub: https://hub.docker.com/r/piotrpazola/nginx-unit

NGINX Unit is available only with PHP 7.3 and older implementation of PDO MYSQL does not support newest authentication of MYSQL 8.0 from the image of nginx/unit:1.24.0-php7.3. (Oct 2020)

I've build the newest compilation of PHP 7.4 with embeded support of PHP for the NGINX Unit and newest PDO MYSQL module working well with MYSQL 8.0 without any authentication issues.

It's based on nginx/unit:1.24.0-minimal where module for Unit is built from sources of php7.4 and unit1.24.0 then the prepared package is copied to next stage of builiding in Dockerfile starting building on clean nginx/unit:1.24.0-minimal image. How to prepare custom modules for NGINX Unit is describe here: https://unit.nginx.org/howto/modules/ and my approach has been using it in the first stage.

I've tried to make the image the smallest as possible. It's just approx. 10 MB bigger than offcial NGINX Unit nginx/unit:1.24.0-php7.3 with PHP 7.3 and old PDO MYSQL support installed by apk from Debian 10 repository.

Installation

Build from sources of Dockerfile and build.sh I've provided in the repository.

docker build -t nginx-unit:1.24.0-php7.4-pdo-mysql-curl .

OR use ready docker image from https://hub.docker.com/r/piotrpazola/nginx-unit

docker pull piotrpazola/nginx-unit:1.24.0-php7.4-pdo-mysql-curl

Usage

FROM built image in local repository:

FROM nginx-unit:1.24.0-php7.4-pdo-mysql-curl
COPY ./nginx-unit-config.json /docker-entrypoint.d/config.json

OR get ready to use image from remote repository on Docker Hub:

FROM piotrpazola/nginx-unit:1.24.0-php7.4-pdo-mysql-curl
COPY ./nginx-unit-config.json /docker-entrypoint.d/config.json

Contributing

Pull requests are welcome.

License

MIT

nginx-unit-1.20.0-php7.4-pdo-mysql's People

Contributors

piotrpazola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

btc-projects

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.