Public | Automated Build

Last pushed: a year ago
Short Description
This is a PHP-FPM customized version with XDebug designed to develop on Magento1 and Magento2.
Full Description

Versions

Docker Image

Description

This repo is a fork from MagenInferno-Magento2-php to apply some changes focused in local development on Magento2.

What's in this image?

This image installs the following base packages:

  • composer
  • php-fpm

This image also installs the following PHP extensions, which are the minimally required extensions to install and run Magento 2:

  • gd
  • intl
  • mbstring
  • mcrypt
  • pdo_mysql
  • xsl
  • zip

Variables

The following variables may be set to control the PHP environment:

  • PHP_MEMORY_LIMIT: (default 2048M) Set the memory_limit of php.ini
  • PHP_PORT: (default: 9000) Set a custom PHP port
  • PHP_PM: (default dynamic) Set the process manager
  • PHP_PM_MAX_CHILDREN: (default: 10) Set the max number of children processes
  • PHP_PM_START_SERVERS: (default: 4) Set the default number of servers to start at runtime
  • PHP_PM_MIN_SPARE_SERVERS: (default 2) Set the minumum number of spare servers
  • PHP_PM_MAX_SPARE_SERVERS: (default: 6) Set the maximum number of spare servers
  • APP_MAGE_MODE: (default: default) Set the MAGE_MODE

One-off containers

This image can run one-off PHP commands, such as:

docker run --rm --name php-test mageinferno/magento2-php echo "Hello world"

Application code is placed in /srv/www. You can also attach a volume to that location, then run Magento-specific commands such as the Magento CLI tool:

docker run --rm --name mysite -v /Users/username/Sites/mysite/app/code:/srv/www/app/code mageinferno/magento2-php:7.0.5-fpm-0 ./bin/magento

Docker Compose

Please see https://github.com/mageinferno/magento2-docker-compose for more detailed instructions and an example development environment using Docker Compose.

Docker Pull Command
Owner
ipascual
Source Repository