Sign inSign up

dolphiq/dqx-php85-alpine-complete

By dolphiq

•Updated about 2 hours ago

PHP 8.5.12 Alpine 3.24 complete for Laravel dev/CI

Image
0

283

dolphiq/dqx-php85-alpine-complete repository overview

⁠dolphiq/dqx-php85-alpine-complete

PHP 8.5.12 on Alpine 3.24, complete flavour: a Laravel development and CI image by Dolphiq, used by dqx.

⁠Tags

TagMoves when
:X.Y.Znever
:X.YPHP, MySQL client, npm and tool patches; same distro and Node major
:Xalso Node majors, distro minors and added extensions
:latestevery release; for trying out only

Pin :X.Y in projects, currently dolphiq/dqx-php85-alpine-complete:0.1 (0.1.1).

⁠Use

# docker-compose.yml
services:
  app:
    image: dolphiq/dqx-php85-alpine-complete:0.1
    environment:
      PHP_MEMORY_LIMIT: 1G
# bitbucket-pipelines.yml
image: dolphiq/dqx-php85-alpine-complete:0.1

⁠Contents

Versions read from dolphiq/dqx-php85-alpine-complete:0.1.1.

ComponentVersion
OSAlpine Linux v3.24
PHP8.5.12
Node.js24.18.1
npm11.12.1
Composer2.10.3
MySQL client (mysql, mysqldump)8.4.13
git2.54.0
Aikido safe-chain (npm, npx run through it)1.5.26
bash5.3.9
curl8.22.0
OpenSSH client10.3p1
rsync3.5.0
unzip6.00
zip3.0
zsh with oh-my-zsh5.9
ImageMagick (SVG, PDF, WebP)7.1.2
Ghostscript10.08.0
poppler-utils (pdftotext, pdftoppm)25.12.0
rsvg-convert2.62.3
postgresql-client (psql, pg_dump)18.6

PHP extensions added to the official image: bcmath 8.5.12, exif 8.5.12, gd 8.5.12, igbinary 3.2.17RC1, intl 8.5.12, mbstring 8.5.12, msgpack 3.0.1, mysqli 8.5.12, pcntl 8.5.12, pcov 1.0.12, pdo_mysql 8.5.12, redis 6.3.0, sockets 8.5.12, xdebug 3.5.3, zend opcache 8.5.12, zip 1.22.8, imagick 3.8.1, pdo_pgsql 8.5.12, pgsql 8.5.12, soap 8.5.12.

All 54 loaded modules: bcmath, Core, ctype, curl, date, dom, exif, fileinfo, filter, gd, hash, iconv, igbinary, imagick, intl, json, lexbor, libxml, mbstring, msgpack, mysqli, mysqlnd, openssl, pcntl, pcov, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, random, readline, redis, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, tokenizer, uri, xdebug, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib.

⁠Machine-readable

  • nl.dolphiq.dqx.contents label: the contents above as JSON, readable from the registry without pulling (dqx image info dolphiq/dqx-php85-alpine-complete:0.1).
  • /etc/dqx-image.json in the image: the versions read from the binaries, every PHP extension with its version and the OS tools.
  • catalog/images.json⁠ and catalog/contents/php85-alpine-complete/<version>.json: every image and every released version.

⁠Environment

Every setting is an environment variable, so projects override it in environment: instead of mounting ini files.

VariableDefaultSets
PHP_PCOV_ENABLED01 turns pcov coverage on
PHP_MEMORY_LIMIT512Mmemory_limit
PHP_UPLOAD_MAX_FILESIZE64Mupload_max_filesize
PHP_POST_MAX_SIZE64Mpost_max_size
PHP_MAX_EXECUTION_TIME300max_execution_time
PHP_DATE_TIMEZONEUTCdate.timezone
PHP_OPCACHE_ENABLE1opcache.enable (timestamps are always validated)
TZUTCsystem timezone

Xdebug is loaded and off (xdebug.mode = off in docker-php-ext-xdebug.ini). Set XDEBUG_MODE (for example debug or coverage) to turn it on; dqx xdebug on does that per site.

The image runs as root in /var/www, uses php.ini-development, and has no HEALTHCHECK (compose or dqx defines one).

⁠Extend

Project-specific needs go into a project Dockerfile on top of this image. Install the build tools, compile and remove them in one RUN; add the runtime libraries an extension needs (for example libldap for ldap):

FROM dolphiq/dqx-php85-alpine-complete:0.1

RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
    && docker-php-ext-install calendar \
    && apk del .build-deps

⁠Changelog

⁠0.1.1
  • patch: Describe the contents in the nl.dolphiq.dqx.contents label and list OS, git, safe-chain, extension and OS tool versions in /etc/dqx-image.json
  • patch: Turn Xdebug off in its ini instead of XDEBUG_MODE, so dqx xdebug on works
⁠0.1.0
  • minor: Initial pilot release

Full history, sources and the other images: https://bitbucket.org/dq-private/dqx-docker-images-php⁠ (releases/php85-alpine-complete/CHANGELOG.md).

Tag summary

Content type

Image

Digest

sha256:c32338d69…

Size

139.5 MB

Last updated

about 2 hours ago

docker pull dolphiq/dqx-php85-alpine-complete