Skip to content

Commit

Permalink
Merge branch 'php_8.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
fox91 committed Nov 29, 2023
2 parents 47f635a + 031ab0d commit 270ede3
Show file tree
Hide file tree
Showing 91 changed files with 1,660 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: ["8.1", "8.2"]
php_version: ["8.1", "8.2", "8.3"]
os_version: ["alpine3.18", "bookworm"]
steps:
-
Expand Down
6 changes: 6 additions & 0 deletions 8.3/alpine3.18/bcmath/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-bcmath
RUN docker-php-ext-install -j$(nproc) bcmath
14 changes: 14 additions & 0 deletions 8.3/alpine3.18/bz2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-bz2
# https://github.com/docker-library/php/issues/512#issuecomment-339448094
RUN set -eux; \
persistentDeps=" \
bzip2 \
bzip2-dev \
"; \
apk add --no-cache --virtual .bz2-persistent-deps ${persistentDeps}; \
\
docker-php-ext-install -j$(nproc) bz2
32 changes: 32 additions & 0 deletions 8.3/alpine3.18/gd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-gd
RUN set -eux; \
persistentDeps=" \
freetype \
libjpeg-turbo \
libpng \
libwebp \
libxpm \
"; \
buildDeps=" \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
libxpm-dev \
"; \
apk add --no-cache --virtual .gd-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .gd-build-deps ${buildDeps}; \
\
docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
--with-webp \
--with-xpm \
; \
docker-php-ext-install -j$(nproc) gd; \
\
apk del --no-cache --no-network .gd-build-deps
18 changes: 18 additions & 0 deletions 8.3/alpine3.18/gmp/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-gmp
RUN set -eux; \
persistentDeps=" \
gmp \
"; \
buildDeps=" \
gmp-dev \
"; \
apk add --no-cache --virtual .gmp-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .gmp-build-deps ${buildDeps}; \
\
docker-php-ext-install -j$(nproc) gmp; \
\
apk del --no-cache --no-network .gmp-build-deps
24 changes: 24 additions & 0 deletions 8.3/alpine3.18/imap/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-imap
RUN set -eux; \
persistentDeps=" \
c-client \
"; \
buildDeps=" \
imap-dev \
krb5-dev \
openssl-dev \
"; \
apk add --no-cache --virtual .imap-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .imap-build-deps ${buildDeps}; \
\
docker-php-ext-configure imap \
--with-imap-ssl \
--with-kerberos \
; \
docker-php-ext-install -j$(nproc) imap; \
\
apk del --no-cache --no-network .imap-build-deps
18 changes: 18 additions & 0 deletions 8.3/alpine3.18/intl/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-intl
RUN set -eux; \
persistentDeps=" \
icu \
"; \
buildDeps=" \
icu-dev \
"; \
apk add --no-cache --virtual .intl-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .intl-build-deps ${buildDeps}; \
\
docker-php-ext-install -j$(nproc) intl; \
\
apk del --no-cache --no-network .intl-build-deps
18 changes: 18 additions & 0 deletions 8.3/alpine3.18/ldap/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-ldap
RUN set -eux; \
persistentDeps=" \
libldap \
"; \
buildDeps=" \
openldap-dev \
"; \
apk add --no-cache --virtual .ldap-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .ldap-build-deps ${buildDeps}; \
\
docker-php-ext-install -j$(nproc) ldap; \
\
apk del --no-cache --no-network .ldap-build-deps
6 changes: 6 additions & 0 deletions 8.3/alpine3.18/mysqli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-mysqli
RUN docker-php-ext-install -j$(nproc) mysqli
6 changes: 6 additions & 0 deletions 8.3/alpine3.18/opcache/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-opcache
RUN docker-php-ext-install -j$(nproc) opcache
6 changes: 6 additions & 0 deletions 8.3/alpine3.18/pcntl/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-pcntl
RUN docker-php-ext-install -j$(nproc) pcntl
6 changes: 6 additions & 0 deletions 8.3/alpine3.18/pdo_mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-pdo_mysql
RUN docker-php-ext-install -j$(nproc) pdo_mysql
18 changes: 18 additions & 0 deletions 8.3/alpine3.18/pdo_pgsql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-pdo_pgsql
RUN set -eux; \
persistentDeps=" \
libpq \
"; \
buildDeps=" \
postgresql-dev \
"; \
apk add --no-cache --virtual .pdo_pgsql-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .pdo_pgsql-build-deps ${buildDeps}; \
\
docker-php-ext-install -j$(nproc) pdo_pgsql; \
\
apk del --no-cache --no-network .pdo_pgsql-build-deps
22 changes: 22 additions & 0 deletions 8.3/alpine3.18/pecl_amqp/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-amqp
ARG PHPEXT_AMQP_VERSION=2.1.1
RUN set -eux; \
persistentDeps=" \
rabbitmq-c \
"; \
buildDeps=" \
rabbitmq-c-dev \
"; \
apk add --no-cache --virtual .amqp-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .amqp-build-deps ${buildDeps}; \
\
pecl bundle -d /usr/src/php/ext amqp-${PHPEXT_AMQP_VERSION}; \
docker-php-ext-install -j$(nproc) amqp; \
\
apk del --no-cache --no-network .amqp-build-deps; \
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
12 changes: 12 additions & 0 deletions 8.3/alpine3.18/pecl_apcu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-apcu
ARG PHPEXT_APCU_VERSION=5.1.23
RUN set -eux; \
pecl bundle -d /usr/src/php/ext apcu-${PHPEXT_APCU_VERSION}; \
docker-php-ext-install -j$(nproc) apcu; \
\
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
12 changes: 12 additions & 0 deletions 8.3/alpine3.18/pecl_ast/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-ast
ARG PHPEXT_AST_VERSION=1.1.1
RUN set -eux; \
pecl bundle -d /usr/src/php/ext ast-${PHPEXT_AST_VERSION}; \
docker-php-ext-install -j$(nproc) ast; \
\
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
12 changes: 12 additions & 0 deletions 8.3/alpine3.18/pecl_dbase/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-dbase
ARG PHPEXT_DBASE_VERSION=7.1.1
RUN set -eux; \
pecl bundle -d /usr/src/php/ext dbase-${PHPEXT_DBASE_VERSION}; \
docker-php-ext-install -j$(nproc) dbase; \
\
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
22 changes: 22 additions & 0 deletions 8.3/alpine3.18/pecl_fann/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-fann
ARG PHPEXT_FANN_VERSION=1.2.0RC2
RUN set -eux; \
persistentDeps=" \
fann \
"; \
buildDeps=" \
fann-dev \
"; \
apk add --no-cache --virtual .fann-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .fann-build-deps ${buildDeps}; \
\
pecl bundle -d /usr/src/php/ext fann-${PHPEXT_FANN_VERSION}; \
docker-php-ext-install -j$(nproc) fann; \
\
apk del --no-cache --no-network .fann-build-deps; \
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
12 changes: 12 additions & 0 deletions 8.3/alpine3.18/pecl_geospatial/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-geospatial
ARG PHPEXT_GEOSPATIAL_VERSION=0.3.2
RUN set -eux; \
pecl bundle -d /usr/src/php/ext geospatial-${PHPEXT_GEOSPATIAL_VERSION}; \
docker-php-ext-install -j$(nproc) geospatial; \
\
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
23 changes: 23 additions & 0 deletions 8.3/alpine3.18/pecl_grpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-grpc
ARG PHPEXT_GRPC_VERSION=1.59.1
RUN set -eux; \
persistentDeps=" \
libstdc++ \
"; \
buildDeps=" \
linux-headers \
zlib-dev \
"; \
apk add --no-cache --virtual .grpc-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .grpc-build-deps ${buildDeps}; \
\
pecl bundle -d /usr/src/php/ext grpc-${PHPEXT_GRPC_VERSION}; \
docker-php-ext-install -j$(nproc) grpc; \
\
apk del --no-cache --no-network .grpc-build-deps; \
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
12 changes: 12 additions & 0 deletions 8.3/alpine3.18/pecl_igbinary/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-igbinary
ARG PHPEXT_IGBINARY_VERSION=3.2.14
RUN set -eux; \
pecl bundle -d /usr/src/php/ext igbinary-${PHPEXT_IGBINARY_VERSION}; \
docker-php-ext-install -j$(nproc) igbinary; \
\
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
23 changes: 23 additions & 0 deletions 8.3/alpine3.18/pecl_imagick/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-imagick
ARG PHPEXT_IMAGICK_VERSION=3.7.0
RUN set -eux; \
persistentDeps=" \
imagemagick-libs \
libgomp \
"; \
buildDeps=" \
imagemagick-dev \
"; \
apk add --no-cache --virtual .imagick-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .imagick-build-deps ${buildDeps}; \
\
pecl bundle -d /usr/src/php/ext imagick-${PHPEXT_IMAGICK_VERSION}; \
docker-php-ext-install -j$(nproc) imagick; \
\
apk del --no-cache --no-network .imagick-build-deps; \
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
12 changes: 12 additions & 0 deletions 8.3/alpine3.18/pecl_mailparse/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-mailparse
ARG PHPEXT_MAILPARSE_VERSION=3.1.6
RUN set -eux; \
pecl bundle -d /usr/src/php/ext mailparse-${PHPEXT_MAILPARSE_VERSION}; \
docker-php-ext-install -j$(nproc) mailparse; \
\
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
22 changes: 22 additions & 0 deletions 8.3/alpine3.18/pecl_mcrypt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM php:8.3-alpine3.18

LABEL maintainer="Andrea Falco <andrea@falco.sh>"

# PHP ext-mcrypt
ARG PHPEXT_MCRYPT_VERSION=1.0.6
RUN set -eux; \
persistentDeps=" \
libmcrypt \
"; \
buildDeps=" \
libmcrypt-dev \
"; \
apk add --no-cache --virtual .mcrypt-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .mcrypt-build-deps ${buildDeps}; \
\
pecl bundle -d /usr/src/php/ext mcrypt-${PHPEXT_MCRYPT_VERSION}; \
docker-php-ext-install -j$(nproc) mcrypt; \
\
apk del --no-cache --no-network .mcrypt-build-deps; \
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*
Loading

0 comments on commit 270ede3

Please sign in to comment.