PHP base images (for CLI, RPC and FPM workloads)
100K+
These docker images are bases for Divido PHP microservices. Many services can use one of these images directly, although if special packages are required then these can serve as bases/
All images are now rolled with a script which can be used as a default entrypoint in your docker file. The entrypoint supports:
Supported flags:
| flag | default value | notes |
|---|---|---|
check-network | null | takes no value. If provided, network will be verified before continuing |
credstash-config | null | value is in the form of remote_key:local_file. For example, to download a remote key at autogen.foo.config.json and save it to /opt/divido/app/config.json, the value would be credstash-config=autogen.foo.config.json:/opt/divido/app/config.json |
credstash-table | <env>-credstash | uses the DIVIDO_SHORT_APPLICATION_ENVIRONMENT variable to generate the default table name, e.g. test-credstash |
credstash-region | eu-west-1 | change if your dynamodb table is not in eu-west-1 |
Examples:
To use the default entrypoint in your Dockerfile
FROM divido/php:7.2-fpm-alpine3.8 # Or another image from this repo
# to check network config
ENTRYPOINT ["/ep", "--check-network-config"]
# Or to download a configuration file from credstash (note that this flag can be used multiple times for multiple files)
ENTRYPOINT ["/ep", "--credstash-config=autogen.application-api.config.json:/opt/divido/app/config.json"]
Credstash configs have some specific behaviours, based on the downloaded file name.
1. `*.cacert`: This will assume the certificate is CA certificate, and will install the certficate in the CA path
2. `*.clientcert` and `*.pkey`: These are assumed to be client certficates and private keys. They will remain in the specified download path, but will have their permissions set to `0644`
3. *: anything else will assume to be a configuration file, and will be made world readable.
All images come with the following:
| package | notes |
|---|---|
credstash | for utilizing Divido credstash configurations |
ca-certificates | for SSL/TLS communication |
php-json | PHP JSON module |
php-tokenizer | PHP JSON module |
php-pdo-mysql | PHP PDO (MySQL) module |
php-sockets | PHP sockets module |
php-bcmath | PHP bcmath module |
php-xml | PHP XML module |
php-redis | PHP Redis module |
All supported versions are available in a combination of PHP version and OS version (currently only Alpine is supported). Within each of these wrappers there are 2 types:
fpm: for PHP-FPM (Fast-CGI) workloads (e.g. Nginx proxied APIs)cli: for CLI workloads (e.g. workers)| tag | php version | OS | OS version | notes |
|---|---|---|---|---|
| 7.2-fpm-alpine3.7 | 7.2 | alpine | 3.7 | FPM server |
| 7.2-cli-alpine3.7 | 7.2 | alpine | 3.7 | CLI |
| 7.2-cli-alpine3.7-rpc | 7.2 | alpine | 3.7 | CLI with RPC server |
| 7.2-cli-alpine3.7-sqs | 7.2 | alpine | 3.7 | CLI with SQS server |
| 7.2-cli-alpine3.7-dev | 7.2 | alpine | 3.7 | FPM server with Xdebug |
| 7.2-fpm-alpine3.8 | 7.2 | alpine | 3.8 | FPM server |
| 7.2-cli-alpine3.8 | 7.2 | alpine | 3.8 | CLI |
| 7.2-cli-alpine3.8-rpc | 7.2 | alpine | 3.8 | CLI with RPC server |
| 7.2-cli-alpine3.8-sqs | 7.2 | alpine | 3.8 | CLI with SQS server |
| 7.2-cli-alpine3.8-dev | 7.2 | alpine | 3.8 | FPM server with Xdebug |
| 7.2-fpm-alpine3.9 | 7.2 | alpine | 3.9 | FPM server |
| 7.2-cli-alpine3.9 | 7.2 | alpine | 3.9 | CLI |
| 7.2-cli-alpine3.9-rpc | 7.2 | alpine | 3.9 | CLI with RPC server |
| 7.2-cli-alpine3.9-sqs | 7.2 | alpine | 3.9 | CLI with SQS server |
| 7.2-cli-alpine3.9-dev | 7.2 | alpine | 3.9 | FPM server with Xdebug |
| 7.2-fpm-alpine3.10 | 7.2 | alpine | 3.10 | FPM server |
| 7.2-cli-alpine3.10 | 7.2 | alpine | 3.10 | CLI |
| 7.2-cli-alpine3.10-rpc | 7.2 | alpine | 3.10 | CLI with RPC server |
| 7.2-cli-alpine3.10-sqs | 7.2 | alpine | 3.10 | CLI with SQS server |
| 7.2-cli-alpine3.10-dev | 7.2 | alpine | 3.10 | FPM server with Xdebug |
| 7.3-fpm-alpine3.8 | 7.3 | alpine | 3.8 | FPM server |
| 7.3-cli-alpine3.8 | 7.3 | alpine | 3.8 | CLI |
| 7.3-cli-alpine3.8-rpc | 7.3 | alpine | 3.8 | CLI with RPC server |
| 7.3-cli-alpine3.8-sqs | 7.3 | alpine | 3.8 | CLI with SQS server |
| 7.3-cli-alpine3.8-dev | 7.3 | alpine | 3.8 | FPM server with Xdebug |
| 7.3-fpm-alpine3.8 | 7.3 | alpine | 3.9 | FPM server |
| 7.3-cli-alpine3.9 | 7.3 | alpine | 3.9 | CLI |
| 7.3-cli-alpine3.9-rpc | 7.3 | alpine | 3.9 | CLI with RPC server |
| 7.3-cli-alpine3.9-sqs | 7.3 | alpine | 3.9 | CLI with SQS server |
| 7.3-cli-alpine3.9-dev | 7.3 | alpine | 3.9 | FPM server with Xdebug |
| 7.3-cli-alpine3.9-rpc-dev | 7.3 | alpine | 3.9 | CLI with RPC server and |
| 7.3-cli-alpine3.10 | 7.3 | alpine | 3.10 | CLI |
| 7.3-cli-alpine3.10-rpc | 7.3 | alpine | 3.10 | CLI with RPC server |
| 7.3-cli-alpine3.10-sqs | 7.3 | alpine | 3.10 | CLI with SQS server |
| 7.3-cli-alpine3.10-dev | 7.3 | alpine | 3.10 | FPM server with Xdebug |
| 7.3-cli-alpine3.10-rpc-dev | 7.3 | alpine | 3.10 | CLI with RPC server and |
| 7.4-cli-alpine3.10 | 7.4 | alpine | 3.10 | CLI |
| 7.4-cli-alpine3.10-rpc | 7.4 | alpine | 3.10 | CLI with RPC server |
| 7.4-cli-alpine3.10-sqs | 7.4 | alpine | 3.10 | CLI with SQS server |
| 7.4-cli-alpine3.10-dev | 7.4 | alpine | 3.10 | FPM server with Xdebug |
| 7.4-cli-alpine3.10-rpc-dev | 7.4 | alpine | 3.10 | CLI with RPC server and |
| 7.4-cli-alpine3.11 | 7.4 | alpine | 3.11 | CLI |
| 7.4-cli-alpine3.11-rpc | 7.4 | alpine | 3.11 | CLI with RPC server |
| 7.4-cli-alpine3.11-sqs | 7.4 | alpine | 3.11 | CLI with SQS server |
| 7.4-cli-alpine3.11-dev | 7.4 | alpine | 3.11 | FPM server with Xdebug |
| 7.4-cli-alpine3.11-rpc-dev | 7.4 | alpine | 3.11 | CLI with RPC server and Xdebug |
Content type
Image
Digest
sha256:0be0b7a33…
Size
69.2 MB
Last updated
about 4 years ago
docker pull divido/php:8.0-fpm-alpine3.14-dev