Skip to content

Commit 31d21c7

Browse files
committed
add swoole extension config
1 parent c6245fd commit 31d21c7

4 files changed

Lines changed: 35 additions & 1 deletion

File tree

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ PHP_FPM_INSTALL_MYSQLI=false
6868
PHP_FPM_INSTALL_TOKENIZER=false
6969
PHP_FPM_INSTALL_INTL=false
7070
PHP_FPM_INSTALL_GHOSTSCRIPT=false
71+
PHP_FPM_INSTALL_SWOOLE=false
7172

7273
### NGINX ##############################################################################################################
7374

php-fpm/Dockerfile-56

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
9292
&& docker-php-ext-enable redis \
9393
;fi
9494

95+
#####################################
96+
# Swoole EXTENSION FOR PHP 5
97+
#####################################
98+
99+
ARG INSTALL_SWOOLE=false
100+
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
101+
# Install Php Swoole Extension
102+
pecl install swoole \
103+
&& docker-php-ext-enable swoole \
104+
;fi
105+
95106
#####################################
96107
# MongoDB:
97108
#####################################

php-fpm/Dockerfile-70

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
8989
&& docker-php-ext-enable redis \
9090
;fi
9191

92+
#####################################
93+
# Swoole EXTENSION FOR PHP 7
94+
#####################################
95+
96+
ARG INSTALL_SWOOLE=false
97+
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
98+
# Install Php Swoole Extension
99+
pecl install swoole \
100+
&& docker-php-ext-enable swoole \
101+
;fi
102+
92103
#####################################
93104
# MongoDB:
94105
#####################################

php-fpm/Dockerfile-71

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
8989
&& docker-php-ext-enable redis \
9090
;fi
9191

92+
#####################################
93+
# Swoole EXTENSION FOR PHP 7
94+
#####################################
95+
96+
ARG INSTALL_SWOOLE=false
97+
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
98+
# Install Php Swoole Extension
99+
pecl install swoole \
100+
&& docker-php-ext-enable swoole \
101+
;fi
102+
92103
#####################################
93104
# MongoDB:
94105
#####################################
@@ -166,7 +177,7 @@ RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
166177
# Fix dependencies for PHPUnit within aerospike extension
167178
apt-get update -yqq && \
168179
apt-get -y install sudo wget && \
169-
180+
170181
# Install the php aerospike extension
171182
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/3.4.14.tar.gz" \
172183
&& mkdir -p aerospike-client-php \

0 commit comments

Comments
 (0)