1 Commits
master ... php8

Author SHA1 Message Date
Gregor Schulte
c1d6e77a39 PHP 8 changes 2021-12-29 13:57:45 +01:00
3 changed files with 12 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
FROM php:7.4-fpm-alpine FROM php:8-fpm-alpine
LABEL maintainer="Ric Harvey <ric@ngd.io>" LABEL maintainer="Ric Harvey <ric@ngd.io>"
@@ -204,8 +204,8 @@ RUN echo /etc/apk/respositories && \
--with-jpeg && \ --with-jpeg && \
#curl iconv session #curl iconv session
#docker-php-ext-install pdo_mysql pdo_sqlite mysqli mcrypt gd exif intl xsl json soap dom zip opcache && \ #docker-php-ext-install pdo_mysql pdo_sqlite mysqli mcrypt gd exif intl xsl json soap dom zip opcache && \
docker-php-ext-install iconv pdo_mysql pdo_sqlite pgsql pdo_pgsql mysqli gd exif intl xsl json soap dom zip opcache && \ docker-php-ext-install pdo_mysql pgsql pdo_pgsql mysqli gd exif intl xsl soap zip opcache && \
pecl install xdebug-2.9.2 && \ pecl install xdebug-3.1.2 && \
pecl install -o -f redis && \ pecl install -o -f redis && \
echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && \ echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && \
docker-php-source delete && \ docker-php-source delete && \

View File

@@ -1,5 +1,6 @@
![docker hub](https://img.shields.io/docker/pulls/gschulte/nginx-php-fpm.svg?style=flat) ![pipeline status](https://gitlab.com/ric_harvey/nginx-php-fpm/badges/master/pipeline.svg)
![docker hub](https://img.shields.io/docker/stars/gschulte/nginx-php-fpm.svg?style=flat) ![docker hub](https://img.shields.io/docker/pulls/richarvey/nginx-php-fpm.svg?style=flat)
![docker hub](https://img.shields.io/docker/stars/richarvey/nginx-php-fpm.svg?style=flat)
## Overview ## Overview
This is a Dockerfile/image to build a container for nginx and php-fpm, with the ability to pull website code from git when the container is created, as well as allowing the container to push and pull changes to the code to and from git. The container also has the ability to update templated files with variables passed to docker in order to update your code and settings. There is support for lets encrypt SSL configurations, custom nginx configs, core nginx/PHP variable overrides for running preferences, X-Forwarded-For headers and UID mapping for local volume support. This is a Dockerfile/image to build a container for nginx and php-fpm, with the ability to pull website code from git when the container is created, as well as allowing the container to push and pull changes to the code to and from git. The container also has the ability to update templated files with variables passed to docker in order to update your code and settings. There is support for lets encrypt SSL configurations, custom nginx configs, core nginx/PHP variable overrides for running preferences, X-Forwarded-For headers and UID mapping for local volume support.
@@ -9,7 +10,7 @@ If you have improvements or suggestions please open an issue or pull request on
### Versioning ### Versioning
| Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version | | Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version |
|-----|-------|-----|--------|--------| |-----|-------|-----|--------|--------|
| latest/1.11.0 | Master Branch |1.21.4 | 7.4.27 | 3.12 | | latest/1.10.4 | Master Branch |1.18.0 | 7.4.10 | 3.12 |
_Note:_ The image is now aviable on x86_64 and Arm systems! _Note:_ The image is now aviable on x86_64 and Arm systems!
@@ -17,8 +18,8 @@ _Note:_ The image is now aviable on x86_64 and Arm systems!
For other tags please see: [versioning](https://gitlab.com/ric_harvey/nginx-php-fpm/blob/master/docs/versioning.md) For other tags please see: [versioning](https://gitlab.com/ric_harvey/nginx-php-fpm/blob/master/docs/versioning.md)
### Links ### Links
- [https://git.schultes.dev/gregor/nginx-php-fpm](https://git.schultes.dev/gregor/nginx-php-fpm) - [https://gitlab.com/ric_harvey/nginx-php-fpm](https://gitlab.com/ric_harvey/nginx-php-fpm)
- [https://hub.docker.com/r/gschulte/nginx-php-fpm](https://hub.docker.com/r/gschulte/nginx-php-fpm) - [https://hub.docker.com/repository/docker/richarvey/nginx-php-fpm](https://hub.docker.com/repository/docker/richarvey/nginx-php-fpm)
## Quick Start ## Quick Start
To pull from docker hub: To pull from docker hub:

View File

@@ -9,5 +9,5 @@ docker buildx create --name phpbuilder
docker buildx use phpbuilder docker buildx use phpbuilder
echo "Building: PHP Container" echo "Building: PHP Container"
docker buildx build --platform linux/amd64,linux/arm64 -t "gschulte/nginx-php-fpm:${VERSION}" -t gschulte/nginx-php-fpm:latest --push . docker buildx build --platform linux/amd64,linux/arm64 -t "gschulte/nginx-php-fpm:php8-${VERSION}" --push .