Skip to content

Commit

Permalink
Merge pull request #1 from LynxSolutions/php-8.4
Browse files Browse the repository at this point in the history
PHP 8.4 Support
  • Loading branch information
bogdannbv authored Dec 9, 2024
2 parents 6b228d4 + 826352a commit 000754c
Show file tree
Hide file tree
Showing 14 changed files with 262 additions and 1 deletion.
40 changes: 40 additions & 0 deletions 8.4/cli-alpine-pcov/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM php:8.4.1-cli-alpine

RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
libxml2-dev \
linux-headers \
&& apk add --no-cache --virtual .runtime-deps \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev \
icu-dev \
&& pecl install \
redis \
pcov \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
gd \
opcache \
pdo_mysql \
sockets \
zip \
intl \
&& docker-php-ext-enable \
redis \
pcov \
&& apk del .build-deps \
&& docker-php-source delete \
&& pecl clear-cache

COPY conf.d/php.overrides.ini $PHP_INI_DIR/conf.d
2 changes: 2 additions & 0 deletions 8.4/cli-alpine-pcov/conf.d/php.overrides.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PHP]
expose_php = Off
40 changes: 40 additions & 0 deletions 8.4/cli-alpine-xdebug/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM php:8.4.1-cli-alpine

RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
libxml2-dev \
linux-headers \
&& apk add --no-cache --virtual .runtime-deps \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev \
icu-dev \
&& pecl install \
redis \
xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
gd \
opcache \
pdo_mysql \
sockets \
zip \
intl \
&& docker-php-ext-enable \
redis \
xdebug \
&& apk del .build-deps \
&& docker-php-source delete \
&& pecl clear-cache

COPY conf.d/php.overrides.ini $PHP_INI_DIR/conf.d
2 changes: 2 additions & 0 deletions 8.4/cli-alpine-xdebug/conf.d/php.overrides.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PHP]
expose_php = Off
38 changes: 38 additions & 0 deletions 8.4/cli-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM php:8.4.1-cli-alpine

RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
libxml2-dev \
linux-headers \
&& apk add --no-cache --virtual .runtime-deps \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev \
icu-dev \
&& pecl install \
redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
gd \
opcache \
pdo_mysql \
sockets \
zip \
intl \
&& docker-php-ext-enable \
redis \
&& apk del .build-deps \
&& docker-php-source delete \
&& pecl clear-cache

COPY conf.d/php.overrides.ini $PHP_INI_DIR/conf.d
2 changes: 2 additions & 0 deletions 8.4/cli-alpine/conf.d/php.overrides.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PHP]
expose_php = Off
40 changes: 40 additions & 0 deletions 8.4/fpm-alpine-pcov/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM php:8.4.1-fpm-alpine

RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
libxml2-dev \
linux-headers \
&& apk add --no-cache --virtual .runtime-deps \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev \
icu-dev \
&& pecl install \
redis \
pcov \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
gd \
opcache \
pdo_mysql \
sockets \
zip \
intl \
&& docker-php-ext-enable \
redis \
pcov \
&& apk del .build-deps \
&& docker-php-source delete \
&& pecl clear-cache

COPY conf.d/php.overrides.ini $PHP_INI_DIR/conf.d
2 changes: 2 additions & 0 deletions 8.4/fpm-alpine-pcov/conf.d/php.overrides.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PHP]
expose_php = Off
40 changes: 40 additions & 0 deletions 8.4/fpm-alpine-xdebug/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM php:8.4.1-fpm-alpine

RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
libxml2-dev \
linux-headers \
&& apk add --no-cache --virtual .runtime-deps \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev \
icu-dev \
&& pecl install \
redis \
xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
gd \
opcache \
pdo_mysql \
sockets \
zip \
intl \
&& docker-php-ext-enable \
redis \
xdebug \
&& apk del .build-deps \
&& docker-php-source delete \
&& pecl clear-cache

COPY conf.d/php.overrides.ini $PHP_INI_DIR/conf.d
2 changes: 2 additions & 0 deletions 8.4/fpm-alpine-xdebug/conf.d/php.overrides.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PHP]
expose_php = Off
38 changes: 38 additions & 0 deletions 8.4/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM php:8.4.1-fpm-alpine

RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
libxml2-dev \
linux-headers \
&& apk add --no-cache --virtual .runtime-deps \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev \
icu-dev \
&& pecl install \
redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
gd \
opcache \
pdo_mysql \
sockets \
zip \
intl \
&& docker-php-ext-enable \
redis \
&& apk del .build-deps \
&& docker-php-source delete \
&& pecl clear-cache

COPY conf.d/php.overrides.ini $PHP_INI_DIR/conf.d
2 changes: 2 additions & 0 deletions 8.4/fpm-alpine/conf.d/php.overrides.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PHP]
expose_php = Off
12 changes: 12 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
},
"8.3": {
"version": "8.3.14",
"latest": false,
"variants": [
"fpm-alpine",
"fpm-alpine-xdebug",
"fpm-alpine-pcov",
"cli-alpine",
"cli-alpine-xdebug",
"cli-alpine-pcov"
]
},
"8.4": {
"version": "8.4.1",
"latest": true,
"variants": [
"fpm-alpine",
Expand Down
3 changes: 2 additions & 1 deletion versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
const VERSIONS = [
'8.2',
'8.3',
'8.4',
];

const LATEST = '8.3';
const LATEST = '8.4';

// Must be implemented in Dockerfile.template
const DISTROS = [
Expand Down

0 comments on commit 000754c

Please sign in to comment.