Skip to content

Commit

Permalink
Merge pull request #1 from YanlongMa/dev
Browse files Browse the repository at this point in the history
php-fpm
  • Loading branch information
yanlongma authored Jul 12, 2019
2 parents 6fc4de2 + 7ad1f46 commit 748a128
Show file tree
Hide file tree
Showing 45 changed files with 29 additions and 16,592 deletions.
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ services:
- INSTALL_MEMCACHED_VERSION=${PHP_INSTALL_MEMCACHED_VERSION}
- INSTALL_SWOOLE=${PHP_INSTALL_SWOOLE}
- INSTALL_SWOOLE_VERSION=${PHP_INSTALL_SWOOLE_VERSION}
- INSTALL_XUNSEARCH=${PHP_INSTALL_XUNSEARCH}
- INSTALL_COMPOSER=${PHP_INSTALL_COMPOSER}
ports:
- 9000:9000
volumes:
- ./php-fpm/conf-${PHP_VERSION}:/usr/local/etc/
- ./php-fpm/conf-${PHP_VERSION}/php.ini:/usr/local/etc/php/php.ini
- ./php-fpm/conf-${PHP_VERSION}/php-fpm.conf:/usr/local/etc/php-fpm.conf
- ./php-fpm/conf-${PHP_VERSION}/php-fpm.d:/usr/local/etc/php-fpm.d
- ${WEB_ROOT_PATH}:/var/www

mysql:
Expand Down
1 change: 1 addition & 0 deletions env-template
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ PHP_INSTALL_MEMCACHED_VERSION=3.1.2
PHP_INSTALL_SWOOLE=flase
PHP_INSTALL_SWOOLE_VERSION=4.2.13

PHP_INSTALL_XUNSEARCH=false
PHP_INSTALL_COMPOSER=false


Expand Down
25 changes: 24 additions & 1 deletion php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,32 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \


###########################################################################
# Composer:
# PHP Thrid Extensions:
###########################################################################

# Thrid Extensions Xunsearch:
ARG INSTALL_XUNSEARCH=false
RUN if [ ${INSTALL_XUNSEARCH} = true ]; then \
curl 'http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2' -o scws.tar.bz2 \
&& tar xvjf scws.tar.bz2 \
&& cd scws-1.2.3 \
&& ./configure --prefix=/usr/local/scws \
&& make \
&& make install \
&& cd phpext \
&& phpize \
&& ./configure --with-scws=/usr/local/scws \
&& make \
&& make install \
&& cd ../../ \
&& rm -rf scws scws-1.2.3.tar.bz2 \
&& docker-php-ext-enable scws \
&& echo "scws.default.charset = utf8" >> /usr/local/etc/php/conf.d/docker-php-ext-scws.ini \
&& echo "scws.default.fpath = /usr/local/scws/etc" >> /usr/local/etc/php/conf.d/docker-php-ext-scws.ini \
;fi


# Composer:
ARG INSTALL_COMPOSER=false
RUN if [ ${INSTALL_COMPOSER} = true ]; then \
curl -sS http://getcomposer.org/installer | php \
Expand Down
2 changes: 0 additions & 2 deletions php-fpm/conf-5.6/pear.conf

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion php-fpm/conf-5.6/php/conf.d/docker-php-ext-bcmath.ini

This file was deleted.

1 change: 0 additions & 1 deletion php-fpm/conf-5.6/php/conf.d/docker-php-ext-gd.ini

This file was deleted.

1 change: 0 additions & 1 deletion php-fpm/conf-5.6/php/conf.d/docker-php-ext-mcrypt.ini

This file was deleted.

1 change: 0 additions & 1 deletion php-fpm/conf-5.6/php/conf.d/docker-php-ext-mysqli.ini

This file was deleted.

1 change: 0 additions & 1 deletion php-fpm/conf-5.6/php/conf.d/docker-php-ext-pdo_mysql.ini

This file was deleted.

1 change: 0 additions & 1 deletion php-fpm/conf-5.6/php/conf.d/docker-php-ext-sockets.ini

This file was deleted.

Loading

0 comments on commit 748a128

Please sign in to comment.