Skip to content

Commit

Permalink
Merge pull request laradock#1345 from jdxia/master
Browse files Browse the repository at this point in the history
workspace container adds swoole
  • Loading branch information
Mahmoudz authored Jan 9, 2018
2 parents d098f1f + c44338e commit 0077de2
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ services:
- INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
- INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
- INSTALL_PG_CLIENT=${WORKSPACE_INSTALL_PG_CLIENT}
- INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE}
- PUID=${WORKSPACE_PUID}
- PGID=${WORKSPACE_PGID}
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
Expand Down
1 change: 1 addition & 0 deletions env-example
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ WORKSPACE_INSTALL_IMAGEMAGICK=false
WORKSPACE_INSTALL_TERRAFORM=false
WORKSPACE_INSTALL_DUSK_DEPS=false
WORKSPACE_INSTALL_PG_CLIENT=false
WORKSPACE_INSTALL_SWOOLE=false
WORKSPACE_PUID=1000
WORKSPACE_PGID=1000
WORKSPACE_CHROME_DRIVER_VERSION=2.32
Expand Down
12 changes: 12 additions & 0 deletions workspace/Dockerfile-56
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,18 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
phpenmod redis \
;fi

#####################################
# Swoole EXTENSION FOR PHP 5.6
#####################################

ARG INSTALL_SWOOLE=false
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
# Install Php Swoole Extension
pecl -q install swoole && \
echo "extension=swoole.so" >> /etc/php/5.6/mods-available/swoole.ini && \
ln -s /etc/php/5.6/mods-available/swoole.ini /etc/php/5.6/cli/conf.d/20-swoole.ini \
;fi

#####################################
# Drush:
#####################################
Expand Down
12 changes: 12 additions & 0 deletions workspace/Dockerfile-70
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,18 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
phpenmod redis \
;fi

#####################################
# Swoole EXTENSION FOR PHP 7
#####################################

ARG INSTALL_SWOOLE=false
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
# Install Php Swoole Extension
pecl -q install swoole && \
echo "extension=swoole.so" >> /etc/php/7.0/mods-available/swoole.ini && \
ln -s /etc/php/7.0/mods-available/swoole.ini /etc/php/7.0/cli/conf.d/20-swoole.ini \
;fi

#####################################
# Drush:
#####################################
Expand Down
12 changes: 12 additions & 0 deletions workspace/Dockerfile-71
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,18 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
phpenmod redis \
;fi

#####################################
# Swoole EXTENSION FOR PHP 7
#####################################

ARG INSTALL_SWOOLE=false
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
# Install Php Swoole Extension
pecl -q install swoole && \
echo "extension=swoole.so" >> /etc/php/7.1/mods-available/swoole.ini && \
ln -s /etc/php/7.1/mods-available/swoole.ini /etc/php/7.1/cli/conf.d/20-swoole.ini \
;fi

#####################################
# Drush:
#####################################
Expand Down

0 comments on commit 0077de2

Please sign in to comment.