-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Bump php 8.2 variants to 8.2.16
Signed-off-by: The Oh Brothers Bot <[email protected]>
- Loading branch information
1 parent
e5ff99c
commit aa60dd3
Showing
6 changed files
with
193 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"php": { | ||
"versions": [ | ||
"8.3.3", | ||
"8.2.15", | ||
"8.2.16", | ||
"8.1.27", | ||
"8.0.30", | ||
"7.4.33", | ||
|
76 changes: 76 additions & 0 deletions
76
variants/8.2.16-fpm-alpine-opcache-mysqli-gd-pdo-memcached-sockets-xdebug/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
FROM php:8.2.16-fpm-alpine | ||
|
||
# opcache | ||
RUN set -eux; \ | ||
docker-php-ext-install opcache | ||
|
||
# mysqli (deprecated) | ||
RUN set -eux; \ | ||
docker-php-ext-install mysqli | ||
|
||
# gd | ||
RUN set -eux; \ | ||
apk add --no-cache freetype libjpeg-turbo libpng; \ | ||
apk add --no-cache --virtual .deps freetype-dev libjpeg-turbo-dev libpng-dev; \ | ||
docker-php-ext-configure gd \ | ||
--with-freetype=/usr/include/ \ | ||
--with-jpeg=/usr/include/; \ | ||
docker-php-ext-install gd; \ | ||
docker-php-source delete; \ | ||
apk del .deps | ||
|
||
# PDO: mysql driver | ||
RUN set -eux; \ | ||
docker-php-ext-install pdo pdo_mysql | ||
|
||
# PDO: pgsql driver | ||
# See: https://github.com/docker-library/php/issues/221 | ||
RUN set -eux; \ | ||
apk add --no-cache postgresql-libs; \ | ||
apk add --no-cache --virtual .deps postgresql-dev; \ | ||
docker-php-ext-install pdo_pgsql; \ | ||
apk del .deps | ||
|
||
# memcached | ||
# See: https://stackoverflow.com/questions/40894385/how-can-i-install-the-php-memcached-extension-on-dockers-php7-alpine-image | ||
RUN set -eux; \ | ||
apk add --no-cache libmemcached-libs zlib; \ | ||
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS; \ | ||
apk add --no-cache --virtual .deps zlib-dev libmemcached-dev cyrus-sasl-dev; \ | ||
pecl install memcached; \ | ||
echo "extension=memcached.so" > /usr/local/etc/php/conf.d/20_memcached.ini; \ | ||
docker-php-source delete; \ | ||
apk del .deps; \ | ||
apk del .phpize-deps; | ||
|
||
# Sockets | ||
# See: https://github.com/docker-library/php/issues/181#issuecomment-173365852 | ||
RUN set -eux; \ | ||
apk add --no-cache --virtual .deps linux-headers; \ | ||
docker-php-ext-install sockets; \ | ||
apk del .deps | ||
|
||
# Xdebug: https://stackoverflow.com/questions/46825502/how-do-i-install-xdebug-on-dockers-official-php-fpm-alpine-image | ||
# PHPIZE_DEPS: autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c | ||
RUN set -eux; \ | ||
apk add --no-cache --virtual .build-dependencies $PHPIZE_DEPS; \ | ||
apk add --no-cache --virtual .deps linux-headers; \ | ||
pecl install xdebug-3.3.1; \ | ||
docker-php-ext-enable xdebug; \ | ||
docker-php-source delete; \ | ||
apk del .deps; \ | ||
apk del .build-dependencies | ||
RUN set -eux; \ | ||
{ \ | ||
echo "[xdebug]"; \ | ||
echo "zend_extension=xdebug"; \ | ||
echo "xdebug.mode=debug"; \ | ||
echo "xdebug.start_with_request=yes"; \ | ||
echo "xdebug.client_host=host.docker.internal"; \ | ||
echo "xdebug.client_port=9000"; \ | ||
} > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; | ||
|
||
RUN set -eux; \ | ||
echo; \ | ||
php -i; \ | ||
php -m |
Oops, something went wrong.