File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ services:
4141 - INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
4242 - INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
4343 - INSTALL_PG_CLIENT=${WORKSPACE_INSTALL_PG_CLIENT}
44+ - INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE}
4445 - PUID=${WORKSPACE_PUID}
4546 - PGID=${WORKSPACE_PGID}
4647 - CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ WORKSPACE_INSTALL_IMAGEMAGICK=false
8585WORKSPACE_INSTALL_TERRAFORM=false
8686WORKSPACE_INSTALL_DUSK_DEPS=false
8787WORKSPACE_INSTALL_PG_CLIENT=false
88+ WORKSPACE_INSTALL_SWOOLE=false
8889WORKSPACE_PUID=1000
8990WORKSPACE_PGID=1000
9091WORKSPACE_CHROME_DRIVER_VERSION=2.32
Original file line number Diff line number Diff line change @@ -239,6 +239,18 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
239239 phpenmod redis \
240240;fi
241241
242+ #####################################
243+ # Swoole EXTENSION FOR PHP 5.6
244+ #####################################
245+
246+ ARG INSTALL_SWOOLE=false
247+ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
248+ # Install Php Swoole Extension
249+ pecl -q install swoole && \
250+ echo "extension=swoole.so" >> /etc/php/5.6/mods-available/swoole.ini && \
251+ ln -s /etc/php/5.6/mods-available/swoole.ini /etc/php/5.6/cli/conf.d/20-swoole.ini \
252+ ;fi
253+
242254#####################################
243255# Drush:
244256#####################################
Original file line number Diff line number Diff line change @@ -235,6 +235,18 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
235235 phpenmod redis \
236236;fi
237237
238+ #####################################
239+ # Swoole EXTENSION FOR PHP 7
240+ #####################################
241+
242+ ARG INSTALL_SWOOLE=false
243+ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
244+ # Install Php Swoole Extension
245+ pecl -q install swoole && \
246+ echo "extension=swoole.so" >> /etc/php/7.0/mods-available/swoole.ini && \
247+ ln -s /etc/php/7.0/mods-available/swoole.ini /etc/php/7.0/cli/conf.d/20-swoole.ini \
248+ ;fi
249+
238250#####################################
239251# Drush:
240252#####################################
Original file line number Diff line number Diff line change @@ -231,6 +231,18 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
231231 phpenmod redis \
232232;fi
233233
234+ #####################################
235+ # Swoole EXTENSION FOR PHP 7
236+ #####################################
237+
238+ ARG INSTALL_SWOOLE=false
239+ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
240+ # Install Php Swoole Extension
241+ pecl -q install swoole && \
242+ echo "extension=swoole.so" >> /etc/php/7.1/mods-available/swoole.ini && \
243+ ln -s /etc/php/7.1/mods-available/swoole.ini /etc/php/7.1/cli/conf.d/20-swoole.ini \
244+ ;fi
245+
234246#####################################
235247# Drush:
236248#####################################
You can’t perform that action at this time.
0 commit comments