Skip to content

Commit 36ef04c

Browse files
committed
add swoole the correct way
1 parent b0c3afc commit 36ef04c

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Dockerfiles/mods/Dockerfile-8.0

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN set -eux \
2828
libldap2-dev \
2929
libmcrypt-dev \
3030
libmemcached-dev \
31+
libnghttp2-dev \
3132
libpcre3-dev \
3233
libpng-dev \
3334
libpq-dev \
@@ -537,6 +538,17 @@ RUN set -eux \
537538
&& true
538539

539540

541+
# -------------------- Installing PHP Extension: swoole --------------------
542+
RUN set -eux \
543+
# Installation: Generic
544+
# Type: PECL extension
545+
# Custom: Pecl command
546+
&& yes yes | pecl install swoole \
547+
# Enabling
548+
&& docker-php-ext-enable swoole \
549+
&& true
550+
551+
540552
# -------------------- Installing PHP Extension: sysvmsg --------------------
541553
RUN set -eux \
542554
# Installation: Generic
@@ -689,6 +701,7 @@ RUN set -eux \
689701
libjpeg62-turbo \
690702
libmcrypt4 \
691703
libmemcachedutil2 \
704+
libnghttp2-14 \
692705
libpng16-16 \
693706
libpq5 \
694707
libsybdb5 \
@@ -868,6 +881,8 @@ RUN set -eux \
868881
&& php-fpm -m | grep -oiE '^spl$' \
869882
&& php -m | grep -oiE '^sqlsrv$' \
870883
&& php-fpm -m | grep -oiE '^sqlsrv$' \
884+
&& php -m | grep -oiE '^swoole$' \
885+
&& php-fpm -m | grep -oiE '^swoole$' \
871886
&& php -m | grep -oiE '^sysvmsg$' \
872887
&& php-fpm -m | grep -oiE '^sysvmsg$' \
873888
&& php -m | grep -oiE '^sysvsem$' \

build/ansible/group_vars/all/mods.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ extensions_available:
987987
build_dep: [libssh2-1-dev]
988988
run_dep: [libssh2-1]
989989
swoole:
990-
disabled: [5.2, 8.0, 8.1]
990+
disabled: [5.2, 8.1]
991991
5.3:
992992
type: pecl
993993
version: 1.9.23

0 commit comments

Comments
 (0)