Sign inSign up

lahautesociete/php-dev

By lahautesociete

•Updated almost 8 years ago

Image
0

1.7K

lahautesociete/php-dev repository overview

⁠PHP Dev

PHP image to use for local development. Image includes the following dependencies :

  • Composer
    • hirak/prestissimo extension to cache php dependencies
  • MySQL Client 5.6
  • unzip
  • wget
  • git
  • rsync
  • sshpass
  • Imagemagick 6.9.10-8
  • mozjpeg
  • svgo
  • PHP extensions:
    • imagick
    • Blackfire (probe)
    • Xdebug
    • PDO Dblib

Image is based on bitnami/bitnami-docker-php-fpm⁠

⁠PHP-FPM configuration

Additional PHP-FPM configuration files can be loaded at runtime by mounting the /opt/bitnami/php/etc/php-fpm.d/ directory.

⁠Blackfire

In order to use the Blackfire facilities, blackfire.server_id and blackfire.server_token must be provided.

The Blackfire blackfire.agent_socket should also be provided in order to connect to the blackfire/blackfire docker instance.

A file named blackfire.conf can be mounted to the container in the /opt/bitnami/php/etc/php-fpm.d/ directory containing the following (adjust the values):

[www]
php_admin_value[blackfire.agent_socket] = "tcp://blackfire:8707"
php_admin_value[blackfire.server_id] = "e0b30241-a25d-4162-9ebb-329f784f1fc7"
php_admin_value[blackfire.server_token] = "3ac2260e038f138a5bca515b72c0205117d886777cf6472b14beabb704e06aa1"

⁠Xdebug

Xdebug is disabled by default.

To enable Xdebug, create a file named xdebug.ini containing the following:

[xdebug]
zend_extension=xdebug.so

The file can then be mounted to the container in the following path to be loaded at runtime: /opt/bitnami/php/etc/conf.d/

The container's PHP_IDE_CONFIG environment variable is exposed to PHP scripts. See http://gitlab.lahautesociete.int/lahautesociete/guidelines-dev/blob/master/xdebug-in-a-docker-container.md⁠ for details on how to properly set up remote debugging in PHPStorm.

⁠Tags

  • 7.1 (PHP 7.1.20)
    • lahautesociete/php-dev
    • lahautesociete/php-dev:7.1
    • lahautesociete/php-dev:7.1-r0
    • lahautesociete/php-dev:7.1-r1
    • lahautesociete/php-dev:7.1-r2
    • lahautesociete/php-dev:7.1-r3
    • lahautesociete/php-dev:7.1-r4
  • 5.6 (PHP 5.6.37)
    • lahautesociete/php-dev:5.6
    • lahautesociete/php-dev:5.6-r0
    • lahautesociete/php-dev:5.6-r1
    • lahautesociete/php-dev:5.6-r2
    • lahautesociete/php-dev:5.6-r3
    • lahautesociete/php-dev:5.6-r4

Tag summary

Content type

Image

Digest

Size

436.1 MB

Last updated

almost 8 years ago

docker pull lahautesociete/php-dev