Skip to content

Commit

Permalink
update sqlite version to 3.45.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Dec 9, 2024
1 parent 8bf3ff9 commit 591df7c
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
9 changes: 9 additions & 0 deletions images/8.3-apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
9 changes: 9 additions & 0 deletions images/8.3-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
9 changes: 9 additions & 0 deletions images/8.4-apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
11 changes: 10 additions & 1 deletion images/8.4-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 591df7c

Please sign in to comment.