Skip to content

Commit 0c7af2f

Browse files
committed
feat: Add swoole for php8.5 and fix install swoole for php8.1
1 parent 6a9ecb9 commit 0c7af2f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Dockerfiles/mods/Dockerfile-8.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ RUN set -eux \
766766
# Installation: Generic
767767
# Type: PECL extension
768768
# Custom: Pecl command
769-
&& pecl install -D 'enable-sockets="no" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes" with-postgres="yes"' swoole \
769+
&& pecl install -D 'enable-sockets="no" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes" with-postgres="yes"' swoole-6.1.7 \
770770
# Enabling
771771
&& docker-php-ext-enable swoole \
772772
&& true

Dockerfiles/mods/Dockerfile-8.5

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ RUN set -eux \
290290
# Type: Custom extension
291291
&& EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
292292
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
293-
&& curl -sS --fail -k https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_$(dpkg-architecture --query DEB_HOST_GNU_CPU | sed 's/_/-/g')_beta.tar.gz -L -o ioncube.tar.gz \
293+
&& curl -sS --fail -k https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_$(dpkg-architecture --query DEB_HOST_GNU_CPU | sed 's/_/-/g').tar.gz -L -o ioncube.tar.gz \
294294
&& tar xvfz ioncube.tar.gz \
295295
&& cd ioncube \
296296
&& cp "ioncube_loader_lin_8.5.so" "${EXTENSION_DIR}/ioncube.so" \
@@ -762,14 +762,14 @@ RUN set -eux \
762762

763763

764764
# -------------------- Installing PHP Extension: swoole --------------------
765-
#RUN set -eux \
766-
# # Installation: Generic
767-
# # Type: PECL extension
768-
# # Custom: Pecl command
769-
# && pecl install -D 'enable-sockets="no" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes" with-postgres="yes"' swoole \
770-
# # Enabling
771-
# && docker-php-ext-enable swoole \
772-
# && true
765+
RUN set -eux \
766+
# Installation: Generic
767+
# Type: PECL extension
768+
# Custom: Pecl command
769+
&& pecl install -D 'enable-sockets="no" enable-openssl="yes" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes" with-postgres="yes"' swoole \
770+
# Enabling
771+
&& docker-php-ext-enable swoole \
772+
&& true
773773

774774

775775
# -------------------- Installing PHP Extension: sysvmsg --------------------
@@ -1163,8 +1163,8 @@ RUN set -eux \
11631163
&& php-fpm -m | grep -oiE '^xml$' \
11641164
&& php -m | grep -oiE '^zip$' \
11651165
&& php-fpm -m | grep -oiE '^zip$' \
1166-
#&& php -m | grep -oiE '^swoole$' \
1167-
#&& php-fpm -m | grep -oiE '^swoole$' \
1166+
&& php -m | grep -oiE '^swoole$' \
1167+
&& php-fpm -m | grep -oiE '^swoole$' \
11681168
&& php -m | grep -oiE '^sysvmsg$' \
11691169
&& php-fpm -m | grep -oiE '^sysvmsg$' \
11701170
&& php -m | grep -oiE '^sysvsem$' \

0 commit comments

Comments
 (0)