- bcmath
- gd
- intl
- mbstring
- memcached (not activated by default)
- pcntl
- pdo
- pdo_mysql
- redis (not activated by default)
- soap
- xdebug (not activated by default)
- zip
- XDEBUG 2.9.0
- MAILHOG v0.1.9
- BLACKFIRE (latest)
The entrypoint file contains a list of environment variables that will be replaced in the configuration files.
PHP_MEMORY_LIMIT
: maximum amount of memory in bytes that a script is allowed to allocate (default128M
)PHP_TIMEZONE
: timezone used by all date/time functions in a script (defaultEurope/Rome
)PHP_OPCACHE_ENABLE
: enable the opcode cache (default1
)PHP_OPCACHE_MEMORY
: the size of the shared memory storage used by OPcache, in megabytes (default64
)
REDIS_ENABLE
: enable redis extension (default0
)MEMCACHED_ENABLE
: enable memcached extension (default0
)XDEBUG_ENABLE
: enable xdebug extension (default0
; you need to setXDEBUG_REMOTE_HOST
env variable also)MAILHOG_ENABLE
: change the defaultsendmail_path
with themailhog
command (default0
)LDAP_ENABLE
: enable ldap extension (default0
)
MAILHOG_HOST
: mailhog smtp address (defaultmail
)MAILHOG_PORT
: mailhog smtp port (default1025
)
You can use build-arg
to specify a user
argument different from root
to build the image with this feature.
If you provide a non-root user the container will drop its privileges targeting the specified user.
We have inserted the specific make targets with dedicated image suffix tags (-rootless
) for these flavours.
You can find some more information here.
In the tests
folder you can find the image_verify.sh
script which is used to perform the end-to-end tests of the images.
The script accepts a file as input (--source
) which is used to configure the expectations.
The expectations are defined by key-value pairs
like the example below:
PHP_MEMORY_LIMIT="64M"
PHP_TIMEZONE="Europe/Rome"
MODULE_REDIS_ENABLE="1"
MODULE_MEMCACHED_ENABLE="0"
You can also test the which user the container was launched with by using the --user
input.
If you build the image with a non existent user you can test it with the string unknown uid ${UUID}
.