Skip to content

Commit

Permalink
Update php8.2 to 8.2.26, php8.3 to 8.3.14 and all other packages (#3)
Browse files Browse the repository at this point in the history
* Update php8.2 to 8.2.26, php8.3 to 8.3.14 and all other packages

* Cleanup code
  • Loading branch information
stankolubomir authored Nov 22, 2024
1 parent 171d784 commit b53bec8
Show file tree
Hide file tree
Showing 18 changed files with 109 additions and 115 deletions.
20 changes: 6 additions & 14 deletions build/php82/cli/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# PLEASE DO NOT EDIT IT DIRECTLY!
# CHECK README FOR MORE INFO.
#
FROM php:8.2.23-cli
FROM php:8.2.26-cli

LABEL maintainer="Lubomir Stanko <[email protected]>"

Expand All @@ -27,6 +27,7 @@ ENV PHP_DATE_TIMEZONE="UTC" \
PHP_ERROR_LOG="/proc/self/fd/2" \
PHP_ERROR_REPORTING=6143 \
PHP_EXPOSE_PHP=0 \
PHP_FFI_ENABLED="preload" \
PHP_LOG_LEVEL="notice" \
PHP_MAX_EXECUTION_TIME=30 \
PHP_MEMORY_LIMIT="256M" \
Expand Down Expand Up @@ -125,10 +126,10 @@ RUN apt-get update && \
RUN apt-get update && \
apt-get install -y \
${PECL_BUILD_DEPS} && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install apcu-5.1.23 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install mongodb-1.19.3 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install apcu-5.1.24 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install mongodb-1.20.0 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install pcov-1.0.11 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install redis-6.0.2 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install redis-6.1.0 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install xdebug-3.3.2 && \
docker-php-ext-enable \
apcu \
Expand All @@ -147,23 +148,14 @@ RUN apt-get update && \
apt-get clean && \
rm -r /var/lib/apt/lists/*

# ----------------------------------------------------------------------------------------------------------------------
# PHP SECURITY CHECKER
# ----------------------------------------------------------------------------------------------------------------------
# Php Security Checker binary package setup
RUN wget -q \
https://github.com/fabpot/local-php-security-checker/releases/download/v2.1.3/local-php-security-checker_linux_amd64 \
-O /usr/local/bin/local-php-security-checker && \
chmod +x /usr/local/bin/local-php-security-checker

# ----------------------------------------------------------------------------------------------------------------------
# COMPOSER
# ----------------------------------------------------------------------------------------------------------------------
RUN curl -sS https://getcomposer.org/installer | \
php -- \
--install-dir=/usr/local/bin \
--filename=composer \
--version=2.7.8
--version=2.8.3

# ----------------------------------------------------------------------------------------------------------------------
# REDIS-TOOLS
Expand Down
1 change: 1 addition & 0 deletions build/php82/cli/base/usr/local/etc/php/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,7 @@ opcache.preload = ${PHP_OPCACHE_PRELOAD_PATH}
; "false" - always disabled
; "true" - always enabled
;ffi.enable=preload
ffi.enable=${PHP_FFI_ENABLED}

; List of headers files to preload, wildcard patterns allowed.
;ffi.preload=
31 changes: 14 additions & 17 deletions build/php82/cli/vipsffmpeg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# PLEASE DO NOT EDIT IT DIRECTLY!
# CHECK README FOR MORE INFO.
#
FROM php:8.2.23-cli
FROM php:8.2.26-cli

LABEL maintainer="Lubomir Stanko <[email protected]>"

Expand All @@ -27,6 +27,7 @@ ENV PHP_DATE_TIMEZONE="UTC" \
PHP_ERROR_LOG="/proc/self/fd/2" \
PHP_ERROR_REPORTING=6143 \
PHP_EXPOSE_PHP=0 \
PHP_FFI_ENABLED="preload" \
PHP_LOG_LEVEL="notice" \
PHP_MAX_EXECUTION_TIME=30 \
PHP_MEMORY_LIMIT="256M" \
Expand Down Expand Up @@ -125,10 +126,10 @@ RUN apt-get update && \
RUN apt-get update && \
apt-get install -y \
${PECL_BUILD_DEPS} && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install apcu-5.1.23 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install mongodb-1.19.3 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install apcu-5.1.24 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install mongodb-1.20.0 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install pcov-1.0.11 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install redis-6.0.2 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install redis-6.1.0 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install xdebug-3.3.2 && \
docker-php-ext-enable \
apcu \
Expand All @@ -147,23 +148,14 @@ RUN apt-get update && \
apt-get clean && \
rm -r /var/lib/apt/lists/*

# ----------------------------------------------------------------------------------------------------------------------
# PHP SECURITY CHECKER
# ----------------------------------------------------------------------------------------------------------------------
# Php Security Checker binary package setup
RUN wget -q \
https://github.com/fabpot/local-php-security-checker/releases/download/v2.1.3/local-php-security-checker_linux_amd64 \
-O /usr/local/bin/local-php-security-checker && \
chmod +x /usr/local/bin/local-php-security-checker

# ----------------------------------------------------------------------------------------------------------------------
# COMPOSER
# ----------------------------------------------------------------------------------------------------------------------
RUN curl -sS https://getcomposer.org/installer | \
php -- \
--install-dir=/usr/local/bin \
--filename=composer \
--version=2.7.8
--version=2.8.3

# ----------------------------------------------------------------------------------------------------------------------
# REDIS-TOOLS
Expand All @@ -187,6 +179,7 @@ RUN curl -sS https://getcomposer.org/installer | \
# ----------------------------------------------------------------------------------------------------------------------
# VIPS ENVIRONMENT VARIABLES
# Packages
ENV PHP_FFI_ENABLED=true
ENV VIPS_BUILD_DEPS="automake \
build-essential \
libexpat1-dev \
Expand All @@ -212,16 +205,17 @@ ENV VIPS_RUN_DEPS="gobject-introspection \
libcfitsio-dev \
libcurl4-openssl-dev \
libexif-dev \
libffi8 \
libfftw3-dev \
libfile-mimeinfo-perl \
libgif-dev \
libgsf-1-114 \
libheif-dev \
libjpeg62-turbo \
libmatio11 \
liborc-0.4-dev \
libopenexr-3-1-30 \
libopenslide-dev \
liborc-0.4-dev \
libpango1.0-dev \
libpoppler-glib8 \
librsvg2-dev \
Expand All @@ -238,12 +232,15 @@ RUN DEBIAN_FRONTEND=noninteractive && \
apt-get install -y \
${VIPS_BUILD_DEPS} \
${VIPS_RUN_DEPS} && \
docker-php-ext-configure ffi && \
docker-php-ext-install -j$(nproc) \
ffi && \
cd /tmp && \
wget -qc \
https://github.com/libvips/libvips/releases/download/v8.15.3/vips-8.15.3.tar.xz \
https://github.com/libvips/libvips/releases/download/v8.16.0/vips-8.16.0.tar.xz \
-O - | \
tar -xJ && \
cd vips-8.15.3 && \
cd vips-8.16.0 && \
meson setup release --libdir=lib --buildtype=release && \
cd release && \
meson compile && \
Expand Down
1 change: 1 addition & 0 deletions build/php82/cli/vipsffmpeg/usr/local/etc/php/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,7 @@ opcache.preload = ${PHP_OPCACHE_PRELOAD_PATH}
; "false" - always disabled
; "true" - always enabled
;ffi.enable=preload
ffi.enable=${PHP_FFI_ENABLED}

; List of headers files to preload, wildcard patterns allowed.
;ffi.preload=
31 changes: 14 additions & 17 deletions build/php82/fpm/vipsffmpeg-nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# PLEASE DO NOT EDIT IT DIRECTLY!
# CHECK README FOR MORE INFO.
#
FROM php:8.2.23-fpm
FROM php:8.2.26-fpm

LABEL maintainer="Lubomir Stanko <[email protected]>"

Expand All @@ -27,6 +27,7 @@ ENV PHP_DATE_TIMEZONE="UTC" \
PHP_ERROR_LOG="/proc/self/fd/2" \
PHP_ERROR_REPORTING=6143 \
PHP_EXPOSE_PHP=0 \
PHP_FFI_ENABLED="preload" \
PHP_LOG_LEVEL="notice" \
PHP_MAX_EXECUTION_TIME=30 \
PHP_MEMORY_LIMIT="256M" \
Expand Down Expand Up @@ -125,10 +126,10 @@ RUN apt-get update && \
RUN apt-get update && \
apt-get install -y \
${PECL_BUILD_DEPS} && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install apcu-5.1.23 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install mongodb-1.19.3 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install apcu-5.1.24 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install mongodb-1.20.0 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install pcov-1.0.11 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install redis-6.0.2 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install redis-6.1.0 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install xdebug-3.3.2 && \
docker-php-ext-enable \
apcu \
Expand All @@ -147,23 +148,14 @@ RUN apt-get update && \
apt-get clean && \
rm -r /var/lib/apt/lists/*

# ----------------------------------------------------------------------------------------------------------------------
# PHP SECURITY CHECKER
# ----------------------------------------------------------------------------------------------------------------------
# Php Security Checker binary package setup
RUN wget -q \
https://github.com/fabpot/local-php-security-checker/releases/download/v2.1.3/local-php-security-checker_linux_amd64 \
-O /usr/local/bin/local-php-security-checker && \
chmod +x /usr/local/bin/local-php-security-checker

# ----------------------------------------------------------------------------------------------------------------------
# COMPOSER
# ----------------------------------------------------------------------------------------------------------------------
RUN curl -sS https://getcomposer.org/installer | \
php -- \
--install-dir=/usr/local/bin \
--filename=composer \
--version=2.7.8
--version=2.8.3

# ----------------------------------------------------------------------------------------------------------------------
# REDIS-TOOLS
Expand All @@ -187,6 +179,7 @@ RUN curl -sS https://getcomposer.org/installer | \
# ----------------------------------------------------------------------------------------------------------------------
# VIPS ENVIRONMENT VARIABLES
# Packages
ENV PHP_FFI_ENABLED=true
ENV VIPS_BUILD_DEPS="automake \
build-essential \
libexpat1-dev \
Expand All @@ -212,16 +205,17 @@ ENV VIPS_RUN_DEPS="gobject-introspection \
libcfitsio-dev \
libcurl4-openssl-dev \
libexif-dev \
libffi8 \
libfftw3-dev \
libfile-mimeinfo-perl \
libgif-dev \
libgsf-1-114 \
libheif-dev \
libjpeg62-turbo \
libmatio11 \
liborc-0.4-dev \
libopenexr-3-1-30 \
libopenslide-dev \
liborc-0.4-dev \
libpango1.0-dev \
libpoppler-glib8 \
librsvg2-dev \
Expand All @@ -238,12 +232,15 @@ RUN DEBIAN_FRONTEND=noninteractive && \
apt-get install -y \
${VIPS_BUILD_DEPS} \
${VIPS_RUN_DEPS} && \
docker-php-ext-configure ffi && \
docker-php-ext-install -j$(nproc) \
ffi && \
cd /tmp && \
wget -qc \
https://github.com/libvips/libvips/releases/download/v8.15.3/vips-8.15.3.tar.xz \
https://github.com/libvips/libvips/releases/download/v8.16.0/vips-8.16.0.tar.xz \
-O - | \
tar -xJ && \
cd vips-8.15.3 && \
cd vips-8.16.0 && \
meson setup release --libdir=lib --buildtype=release && \
cd release && \
meson compile && \
Expand Down
1 change: 1 addition & 0 deletions build/php82/fpm/vipsffmpeg-nginx/usr/local/etc/php/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,7 @@ opcache.preload = ${PHP_OPCACHE_PRELOAD_PATH}
; "false" - always disabled
; "true" - always enabled
;ffi.enable=preload
ffi.enable=${PHP_FFI_ENABLED}

; List of headers files to preload, wildcard patterns allowed.
;ffi.preload=
20 changes: 6 additions & 14 deletions build/php83/cli/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# PLEASE DO NOT EDIT IT DIRECTLY!
# CHECK README FOR MORE INFO.
#
FROM php:8.3.11-cli
FROM php:8.3.14-cli

LABEL maintainer="Lubomir Stanko <[email protected]>"

Expand All @@ -27,6 +27,7 @@ ENV PHP_DATE_TIMEZONE="UTC" \
PHP_ERROR_LOG="/proc/self/fd/2" \
PHP_ERROR_REPORTING=6143 \
PHP_EXPOSE_PHP=0 \
PHP_FFI_ENABLED="preload" \
PHP_LOG_LEVEL="notice" \
PHP_MAX_EXECUTION_TIME=30 \
PHP_MEMORY_LIMIT="256M" \
Expand Down Expand Up @@ -125,10 +126,10 @@ RUN apt-get update && \
RUN apt-get update && \
apt-get install -y \
${PECL_BUILD_DEPS} && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install apcu-5.1.23 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install mongodb-1.19.3 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install apcu-5.1.24 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install mongodb-1.20.0 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install pcov-1.0.11 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install redis-6.0.2 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install redis-6.1.0 && \
yes '' | MAKEFLAGS="-j$(($(nproc)+2))" pecl install xdebug-3.3.2 && \
docker-php-ext-enable \
apcu \
Expand All @@ -147,23 +148,14 @@ RUN apt-get update && \
apt-get clean && \
rm -r /var/lib/apt/lists/*

# ----------------------------------------------------------------------------------------------------------------------
# PHP SECURITY CHECKER
# ----------------------------------------------------------------------------------------------------------------------
# Php Security Checker binary package setup
RUN wget -q \
https://github.com/fabpot/local-php-security-checker/releases/download/v2.1.3/local-php-security-checker_linux_amd64 \
-O /usr/local/bin/local-php-security-checker && \
chmod +x /usr/local/bin/local-php-security-checker

# ----------------------------------------------------------------------------------------------------------------------
# COMPOSER
# ----------------------------------------------------------------------------------------------------------------------
RUN curl -sS https://getcomposer.org/installer | \
php -- \
--install-dir=/usr/local/bin \
--filename=composer \
--version=2.7.8
--version=2.8.3

# ----------------------------------------------------------------------------------------------------------------------
# REDIS-TOOLS
Expand Down
1 change: 1 addition & 0 deletions build/php83/cli/base/usr/local/etc/php/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1966,6 +1966,7 @@ opcache.preload = ${PHP_OPCACHE_PRELOAD_PATH}
; "false" - always disabled
; "true" - always enabled
;ffi.enable=preload
ffi.enable=${PHP_FFI_ENABLED}

; List of headers files to preload, wildcard patterns allowed.
;ffi.preload=
Loading

0 comments on commit b53bec8

Please sign in to comment.