GithubHelp home page GithubHelp logo

docker-image-php's Introduction

Base PHP 8.2 images

  • Images based on Alpine Linux
  • mb_string, openssl, sqllite, curl enabled by default
  • redis and opcache extensions on-board
  • UTC as default timezone
  • Extended localization support (ICU + Intl)
  • ca-certificates and docker-root-certs
  • sfvuedev user and sfvuedev group (20000:20000)
  • Alternative, {dev, symfony} images, with xdebug onboard and composer

Image building

The image is built on the CI server (). Manual approval is required before pushing the image into the registry.

Images can be build locally by running buildAndDeploy.sh build <version>.

Created artifacts

  • $REGISTRY_URL/php8.2:-fpm-dev
  • $REGISTRY_URL/php8.2:-fpm
  • $REGISTRY_URL/php8.2:-cli-dev
  • $REGISTRY_URL/php8.2:-cli-symfony
  • $REGISTRY_URL/php8.2:-cli
  • $REGISTRY_URL/php8.2:

php.ini configs

  • Images built with PHP_INI_VARIANT argument set to development uses default php.ini-development (as main php.ini) and custom php.ini-development (as conf.d/z-base.ini)
  • Images built with PHP_INI_VARIANT argument set to production uses default php.ini-production (as main php.ini) and custom php.ini-production (as conf.d/z-base.ini)

Examples

Local environment (cli) + production variant of configuration + custom xdebug config

docker-compose:

php:
    image: eu.gcr.io/ckpl-reg/php8.2:<version>-cli-xdebug
    environment:
      - XDEBUG_CONFIG
      - XDEBUG_MODE
      - XDEBUG_SESSION

Up command:

XDEBUG_CONFIG="client_host=$(hostname -I | cut -d' ' -f1) start_with_request=yes log_level=0" \
XDEBUG_SESSION="PHPSTORM" \
docker-compose up

TIP

APP_NAME env - used to set the service field for fpm logs - should be passed as fastcgi parameter.


Images

  • FPM (default php.ini-production + resource/php.ini-production): eu.gcr.io/ckpl-reg/php8.2:-fpm
  • CLI (default php.ini-production + resource/php.ini-production): eu.gcr.io/ckpl-reg/php8.2:-cli
  • FPM for dev (default php.ini-development + resource/php.ini-development + resource/xdebug.ini): eu.gcr.io/ckpl-reg/php8.2:-fpm-dev
  • CLI for dev (default php.ini-development + resource/php.ini-development + resource/xdebug.ini): eu.gcr.io/ckpl-reg/php8.2:-cli-dev
  • CLI with symfony (default php.ini-development + resource/php.ini-development + resource/xdebug.ini): eu.gcr.io/ckpl-reg/php8.2:-cli-symfony

CHANGELOG.md

docker-image-php's People

Contributors

rmatt-dev avatar

Watchers

 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.