Skip to content

Commit c44338e

Browse files
author
x
committed
workspace container adds swoole
1 parent 7fc3a9c commit c44338e

5 files changed

Lines changed: 38 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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}

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ WORKSPACE_INSTALL_IMAGEMAGICK=false
8585
WORKSPACE_INSTALL_TERRAFORM=false
8686
WORKSPACE_INSTALL_DUSK_DEPS=false
8787
WORKSPACE_INSTALL_PG_CLIENT=false
88+
WORKSPACE_INSTALL_SWOOLE=false
8889
WORKSPACE_PUID=1000
8990
WORKSPACE_PGID=1000
9091
WORKSPACE_CHROME_DRIVER_VERSION=2.32

workspace/Dockerfile-56

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
#####################################

workspace/Dockerfile-70

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
#####################################

workspace/Dockerfile-71

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
#####################################

0 commit comments

Comments
 (0)