Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 8.5-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN apt update && apt dist-upgrade -y && \
php8.5-mbstring \
php8.5-memcached \
php8.5-mysql \
php8.5-pcov \
php8.5-pdo \
php8.5-pgsql \
php8.5-soap \
Expand Down
1 change: 1 addition & 0 deletions 8.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ RUN apt update && apt dist-upgrade -y && \
php8.5-mbstring \
php8.5-memcached \
php8.5-mysql \
php8.5-pcov \
php8.5-pdo \
php8.5-pgsql \
php8.5-soap \
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DOCKER_IMAGE=dockette/php
DOCKER_PLATFORM?=linux/amd64
VERSION?=8.5

.PHONY: build test run test-cli-% test-fpm-%
.PHONY: build test run test-cli-% test-fpm-% test-pcov-%

build: build-${VERSION}

Expand Down Expand Up @@ -47,6 +47,13 @@ build-8.5-fpm: _build-8.5-fpm

test-cli-%:
docker run --rm ${DOCKER_IMAGE}:$* sh -lc 'php -v && composer --version'
${MAKE} test-pcov-$*

test-fpm-%:
docker run --rm ${DOCKER_IMAGE}:$*-fpm sh -lc 'php -v && composer --version && php-fpm$* -t'
${MAKE} test-pcov-$*-fpm

# pcov requires PHP >= 7.1, older images are expected not to have it
test-pcov-%:
docker run --rm ${DOCKER_IMAGE}:$* php -r 'exit(PHP_VERSION_ID < 70100 || extension_loaded("pcov") ? 0 : 1);' \
|| { echo "ERROR: pcov is not loaded in ${DOCKER_IMAGE}:$*" >&2; exit 1; }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ These images have preinstalled a couple of PHP extensions. The table shows which
| mcrypt | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| memcached | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| mysql | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| pcov | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
| pcov | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
| pdo | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| pgsql | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| redis | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
Expand Down
Loading