From 8eda98c8d1fc30d41945c8662b632bfa43fd941b Mon Sep 17 00:00:00 2001 From: Demin Yin Date: Tue, 31 Dec 2024 12:07:37 -0800 Subject: [PATCH] #54: support SQLite in Swoole 5.1.6+ images --- dockerfiles/5.1.6/php8.0/alpine/Dockerfile | 11 ++++++----- dockerfiles/5.1.6/php8.0/cli/Dockerfile | 10 ++++++---- dockerfiles/5.1.6/php8.1/alpine/Dockerfile | 11 ++++++----- dockerfiles/5.1.6/php8.1/cli/Dockerfile | 10 ++++++---- dockerfiles/5.1.6/php8.2/alpine/Dockerfile | 11 ++++++----- dockerfiles/5.1.6/php8.2/cli/Dockerfile | 10 ++++++---- dockerfiles/5.1.6/php8.3/alpine/Dockerfile | 11 ++++++----- dockerfiles/5.1.6/php8.3/cli/Dockerfile | 10 ++++++---- 8 files changed, 48 insertions(+), 36 deletions(-) diff --git a/dockerfiles/5.1.6/php8.0/alpine/Dockerfile b/dockerfiles/5.1.6/php8.0/alpine/Dockerfile index 8273d244..c22331db 100644 --- a/dockerfiles/5.1.6/php8.0/alpine/Dockerfile +++ b/dockerfiles/5.1.6/php8.0/alpine/Dockerfile @@ -6,7 +6,7 @@ RUN \ set -ex && \ apk update && \ apk add --no-cache libstdc++ libpq && \ - apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ + apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev sqlite-dev zlib-dev && \ # PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+. docker-php-ext-install pdo_mysql && \ pecl channel-update pecl.php.net && \ @@ -19,10 +19,11 @@ RUN \ curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.6.tar.gz -o swoole.tar.gz && \ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \ docker-php-ext-configure swoole \ - --enable-mysqlnd \ - --enable-swoole-pgsql \ - --enable-brotli \ - --enable-openssl \ + --enable-mysqlnd \ + --enable-swoole-pgsql \ + --enable-swoole-sqlite \ + --enable-brotli \ + --enable-openssl \ --enable-sockets --enable-swoole-curl && \ docker-php-ext-install -j$(nproc) swoole && \ rm -f swoole.tar.gz && \ diff --git a/dockerfiles/5.1.6/php8.0/cli/Dockerfile b/dockerfiles/5.1.6/php8.0/cli/Dockerfile index 91c9ea70..5a9bcb79 100644 --- a/dockerfiles/5.1.6/php8.0/cli/Dockerfile +++ b/dockerfiles/5.1.6/php8.0/cli/Dockerfile @@ -16,6 +16,7 @@ RUN \ libcurl4-openssl-dev \ libbrotli-dev \ libpq-dev \ + libsqlite3-dev \ libssl-dev \ supervisor \ unzip \ @@ -28,10 +29,11 @@ RUN \ # PHP extension Redis is included since 4.8.12+ and 5.0.1+. docker-php-ext-enable redis && \ install-swoole.sh 5.1.6 \ - --enable-mysqlnd \ - --enable-swoole-pgsql \ - --enable-brotli \ - --enable-openssl \ + --enable-mysqlnd \ + --enable-swoole-pgsql \ + --enable-swoole-sqlite \ + --enable-brotli \ + --enable-openssl \ --enable-sockets --enable-swoole-curl && \ mkdir -p /var/log/supervisor && \ rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static diff --git a/dockerfiles/5.1.6/php8.1/alpine/Dockerfile b/dockerfiles/5.1.6/php8.1/alpine/Dockerfile index 794a35a8..71802601 100644 --- a/dockerfiles/5.1.6/php8.1/alpine/Dockerfile +++ b/dockerfiles/5.1.6/php8.1/alpine/Dockerfile @@ -6,7 +6,7 @@ RUN \ set -ex && \ apk update && \ apk add --no-cache libstdc++ libpq && \ - apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ + apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev sqlite-dev zlib-dev && \ # PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+. docker-php-ext-install pdo_mysql && \ pecl channel-update pecl.php.net && \ @@ -19,10 +19,11 @@ RUN \ curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.6.tar.gz -o swoole.tar.gz && \ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \ docker-php-ext-configure swoole \ - --enable-mysqlnd \ - --enable-swoole-pgsql \ - --enable-brotli \ - --enable-openssl \ + --enable-mysqlnd \ + --enable-swoole-pgsql \ + --enable-swoole-sqlite \ + --enable-brotli \ + --enable-openssl \ --enable-sockets --enable-swoole-curl && \ docker-php-ext-install -j$(nproc) swoole && \ rm -f swoole.tar.gz && \ diff --git a/dockerfiles/5.1.6/php8.1/cli/Dockerfile b/dockerfiles/5.1.6/php8.1/cli/Dockerfile index a5c67188..856fac8c 100644 --- a/dockerfiles/5.1.6/php8.1/cli/Dockerfile +++ b/dockerfiles/5.1.6/php8.1/cli/Dockerfile @@ -16,6 +16,7 @@ RUN \ libcurl4-openssl-dev \ libbrotli-dev \ libpq-dev \ + libsqlite3-dev \ libssl-dev \ supervisor \ unzip \ @@ -28,10 +29,11 @@ RUN \ # PHP extension Redis is included since 4.8.12+ and 5.0.1+. docker-php-ext-enable redis && \ install-swoole.sh 5.1.6 \ - --enable-mysqlnd \ - --enable-swoole-pgsql \ - --enable-brotli \ - --enable-openssl \ + --enable-mysqlnd \ + --enable-swoole-pgsql \ + --enable-swoole-sqlite \ + --enable-brotli \ + --enable-openssl \ --enable-sockets --enable-swoole-curl && \ mkdir -p /var/log/supervisor && \ rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static diff --git a/dockerfiles/5.1.6/php8.2/alpine/Dockerfile b/dockerfiles/5.1.6/php8.2/alpine/Dockerfile index cb86a7bb..9335a3de 100644 --- a/dockerfiles/5.1.6/php8.2/alpine/Dockerfile +++ b/dockerfiles/5.1.6/php8.2/alpine/Dockerfile @@ -6,7 +6,7 @@ RUN \ set -ex && \ apk update && \ apk add --no-cache libstdc++ libpq && \ - apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ + apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev sqlite-dev zlib-dev && \ # PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+. docker-php-ext-install pdo_mysql && \ pecl channel-update pecl.php.net && \ @@ -19,10 +19,11 @@ RUN \ curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.6.tar.gz -o swoole.tar.gz && \ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \ docker-php-ext-configure swoole \ - --enable-mysqlnd \ - --enable-swoole-pgsql \ - --enable-brotli \ - --enable-openssl \ + --enable-mysqlnd \ + --enable-swoole-pgsql \ + --enable-swoole-sqlite \ + --enable-brotli \ + --enable-openssl \ --enable-sockets --enable-swoole-curl && \ docker-php-ext-install -j$(nproc) swoole && \ rm -f swoole.tar.gz && \ diff --git a/dockerfiles/5.1.6/php8.2/cli/Dockerfile b/dockerfiles/5.1.6/php8.2/cli/Dockerfile index 73416876..3f600daa 100644 --- a/dockerfiles/5.1.6/php8.2/cli/Dockerfile +++ b/dockerfiles/5.1.6/php8.2/cli/Dockerfile @@ -16,6 +16,7 @@ RUN \ libcurl4-openssl-dev \ libbrotli-dev \ libpq-dev \ + libsqlite3-dev \ libssl-dev \ supervisor \ unzip \ @@ -28,10 +29,11 @@ RUN \ # PHP extension Redis is included since 4.8.12+ and 5.0.1+. docker-php-ext-enable redis && \ install-swoole.sh 5.1.6 \ - --enable-mysqlnd \ - --enable-swoole-pgsql \ - --enable-brotli \ - --enable-openssl \ + --enable-mysqlnd \ + --enable-swoole-pgsql \ + --enable-swoole-sqlite \ + --enable-brotli \ + --enable-openssl \ --enable-sockets --enable-swoole-curl && \ mkdir -p /var/log/supervisor && \ rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static diff --git a/dockerfiles/5.1.6/php8.3/alpine/Dockerfile b/dockerfiles/5.1.6/php8.3/alpine/Dockerfile index 632d3170..c4a672be 100644 --- a/dockerfiles/5.1.6/php8.3/alpine/Dockerfile +++ b/dockerfiles/5.1.6/php8.3/alpine/Dockerfile @@ -6,7 +6,7 @@ RUN \ set -ex && \ apk update && \ apk add --no-cache libstdc++ libpq && \ - apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ + apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev sqlite-dev zlib-dev && \ # PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+. docker-php-ext-install pdo_mysql && \ pecl channel-update pecl.php.net && \ @@ -19,10 +19,11 @@ RUN \ curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.6.tar.gz -o swoole.tar.gz && \ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \ docker-php-ext-configure swoole \ - --enable-mysqlnd \ - --enable-swoole-pgsql \ - --enable-brotli \ - --enable-openssl \ + --enable-mysqlnd \ + --enable-swoole-pgsql \ + --enable-swoole-sqlite \ + --enable-brotli \ + --enable-openssl \ --enable-sockets --enable-swoole-curl && \ docker-php-ext-install -j$(nproc) swoole && \ rm -f swoole.tar.gz && \ diff --git a/dockerfiles/5.1.6/php8.3/cli/Dockerfile b/dockerfiles/5.1.6/php8.3/cli/Dockerfile index b8c14cb2..1e5bbadc 100644 --- a/dockerfiles/5.1.6/php8.3/cli/Dockerfile +++ b/dockerfiles/5.1.6/php8.3/cli/Dockerfile @@ -16,6 +16,7 @@ RUN \ libcurl4-openssl-dev \ libbrotli-dev \ libpq-dev \ + libsqlite3-dev \ libssl-dev \ supervisor \ unzip \ @@ -28,10 +29,11 @@ RUN \ # PHP extension Redis is included since 4.8.12+ and 5.0.1+. docker-php-ext-enable redis && \ install-swoole.sh 5.1.6 \ - --enable-mysqlnd \ - --enable-swoole-pgsql \ - --enable-brotli \ - --enable-openssl \ + --enable-mysqlnd \ + --enable-swoole-pgsql \ + --enable-swoole-sqlite \ + --enable-brotli \ + --enable-openssl \ --enable-sockets --enable-swoole-curl && \ mkdir -p /var/log/supervisor && \ rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static