Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.44 KB

0003-default-php-extensions.md

File metadata and controls

27 lines (16 loc) · 1.44 KB

3. Default PHP Extensions

Date: 2019-02-27

Status

Accepted

Context

Given the premise that those images are designed to run in production, in a clustered environment and managed by an orchestrator like Kubernetes or Docker Swarm, it becomes necessary to shape the PHP installation towards those needs.

For instance, images that ship without any PHP extensions (like the official ones) are not able to handle posix signals (like SIGTERM or SIGINT) from an orchestrator. Moreover they lack in-memory user cache, which can be useful for projecting data into a service.

Decision

Ship the Docker images with extensions that contribute to the vision of the microservices use case, being:

Consequences

  • Some of those extensions are not easy to disable, being less flexible for other use cases and becoming more opinionated
  • The images are bigger (Kilobytes)