Skip to content

Commit

Permalink
#54: support SQLite in Swoole 5.1.6+ images
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Dec 31, 2024
1 parent b81b68e commit 8eda98c
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 36 deletions.
11 changes: 6 additions & 5 deletions dockerfiles/5.1.6/php8.0/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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 && \
Expand Down
10 changes: 6 additions & 4 deletions dockerfiles/5.1.6/php8.0/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libsqlite3-dev \
libssl-dev \
supervisor \
unzip \
Expand All @@ -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
Expand Down
11 changes: 6 additions & 5 deletions dockerfiles/5.1.6/php8.1/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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 && \
Expand Down
10 changes: 6 additions & 4 deletions dockerfiles/5.1.6/php8.1/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libsqlite3-dev \
libssl-dev \
supervisor \
unzip \
Expand All @@ -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
Expand Down
11 changes: 6 additions & 5 deletions dockerfiles/5.1.6/php8.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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 && \
Expand Down
10 changes: 6 additions & 4 deletions dockerfiles/5.1.6/php8.2/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libsqlite3-dev \
libssl-dev \
supervisor \
unzip \
Expand All @@ -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
Expand Down
11 changes: 6 additions & 5 deletions dockerfiles/5.1.6/php8.3/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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 && \
Expand Down
10 changes: 6 additions & 4 deletions dockerfiles/5.1.6/php8.3/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libsqlite3-dev \
libssl-dev \
supervisor \
unzip \
Expand All @@ -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
Expand Down

0 comments on commit 8eda98c

Please sign in to comment.