diff --git a/CHANGELOG.md b/CHANGELOG.md index e28d9f3..5bcdd96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Added `xdebug` and `imagick` extension to PHP 8.4 images. * Added `xhprof` extension to PHP 7.4-8.4 images. * Added `imagick` extension to PHP 8.3 images. +* Updated `sqlite3` to 3.45.1 in PHP 8.3-8.4 images. ## v1.6.3 - [December 7, 2024](https://github.com/lando/php/releases/tag/v1.6.3) diff --git a/images/8.3-apache/Dockerfile b/images/8.3-apache/Dockerfile index 1ea1c27..1394be1 100644 --- a/images/8.3-apache/Dockerfile +++ b/images/8.3-apache/Dockerfile @@ -2,6 +2,8 @@ FROM php:8.3-apache-bookworm +ARG TARGETARCH + ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN \ @@ -55,6 +57,13 @@ RUN \ RUN install-php-extensions @composer-2 +# Drupal 11 requires sqlite3 3.45+ +ARG SQLITE_VERSION=3.45.1 +RUN \ + curl -Lo /tmp/sqlite3.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/sqlite3_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \ + && curl -Lo /tmp/libsqlite3-0.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/libsqlite3-0_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \ + && dpkg -i /tmp/sqlite3.deb /tmp/libsqlite3-0.deb + RUN \ chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \ && apt-get -y clean \ diff --git a/images/8.3-fpm/Dockerfile b/images/8.3-fpm/Dockerfile index 3569bc8..11f11fc 100644 --- a/images/8.3-fpm/Dockerfile +++ b/images/8.3-fpm/Dockerfile @@ -2,6 +2,8 @@ FROM php:8.3-fpm-bookworm +ARG TARGETARCH + ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN \ @@ -56,6 +58,13 @@ RUN \ RUN install-php-extensions @composer-2 +# Drupal 11 requires sqlite3 3.45+ +ARG SQLITE_VERSION=3.45.1 +RUN \ + curl -Lo /tmp/sqlite3.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/sqlite3_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \ + && curl -Lo /tmp/libsqlite3-0.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/libsqlite3-0_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \ + && dpkg -i /tmp/sqlite3.deb /tmp/libsqlite3-0.deb + RUN \ chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \ && apt-get -y clean \ diff --git a/images/8.4-apache/Dockerfile b/images/8.4-apache/Dockerfile index 5198643..4d0000d 100644 --- a/images/8.4-apache/Dockerfile +++ b/images/8.4-apache/Dockerfile @@ -2,6 +2,8 @@ FROM php:8.4-apache-bookworm +ARG TARGETARCH + ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN \ @@ -57,6 +59,13 @@ RUN \ RUN install-php-extensions @composer-2 +# Drupal 11 requires sqlite3 3.45+ +ARG SQLITE_VERSION=3.45.1 +RUN \ + curl -Lo /tmp/sqlite3.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/sqlite3_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \ + && curl -Lo /tmp/libsqlite3-0.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/libsqlite3-0_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \ + && dpkg -i /tmp/sqlite3.deb /tmp/libsqlite3-0.deb + RUN \ chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \ && apt-get -y clean \ diff --git a/images/8.4-fpm/Dockerfile b/images/8.4-fpm/Dockerfile index aa7ccbb..39dfa2d 100644 --- a/images/8.4-fpm/Dockerfile +++ b/images/8.4-fpm/Dockerfile @@ -2,13 +2,15 @@ FROM php:8.4-fpm-bookworm +ARG TARGETARCH + ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN \ # MariaDB client compatibility (https://github.com/lando/php/issues/120) mkdir -p /etc/apt/keyrings \ && curl -o /etc/apt/keyrings/mariadb-keyring.pgp 'https://mariadb.org/mariadb_release_signing_key.pgp' \ - && echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://mirror.mariadb.org/repo/10.11/debian bookworm main" > /etc/apt/sources.list.d/mariadb.list + && echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://mirror.mariadb.org/repo/11.4/debian bookworm main" > /etc/apt/sources.list.d/mariadb.list RUN \ mkdir -p /usr/share/man/man1 /usr/share/man/man7 \ @@ -58,6 +60,13 @@ RUN \ RUN install-php-extensions @composer-2 +# Drupal 11 requires sqlite3 3.45+ +ARG SQLITE_VERSION=3.45.1 +RUN \ + curl -Lo /tmp/sqlite3.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/sqlite3_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \ + && curl -Lo /tmp/libsqlite3-0.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/libsqlite3-0_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \ + && dpkg -i /tmp/sqlite3.deb /tmp/libsqlite3-0.deb + RUN \ chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \ && apt-get -y clean \