mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-10 11:01:14 +00:00
Add solr and ssh2 PHP modules
This commit is contained in:
@@ -10,7 +10,6 @@ RUN set -eux \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests apt-utils \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||
alien \
|
||||
cmake \
|
||||
firebird-dev \
|
||||
freetds-dev \
|
||||
libaio-dev \
|
||||
@@ -22,7 +21,6 @@ RUN set -eux \
|
||||
libfbclient2 \
|
||||
libfreetype6-dev \
|
||||
libgmp-dev \
|
||||
libhiredis-dev \
|
||||
libib-util \
|
||||
libicu-dev \
|
||||
libjpeg-dev \
|
||||
@@ -41,6 +39,7 @@ RUN set -eux \
|
||||
librecode-dev \
|
||||
libsasl2-dev \
|
||||
libsnmp-dev \
|
||||
libssh2-1-dev \
|
||||
libssl-dev \
|
||||
libtidy-dev \
|
||||
libvpx-dev \
|
||||
@@ -568,6 +567,17 @@ RUN set -eux \
|
||||
&& true
|
||||
|
||||
|
||||
# -------------------- Installing PHP Extension: solr --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Generic
|
||||
# Type: PECL extension
|
||||
# Default: Pecl command
|
||||
&& pecl install solr \
|
||||
# Enabling
|
||||
&& docker-php-ext-enable solr \
|
||||
&& true
|
||||
|
||||
|
||||
# -------------------- Installing PHP Extension: sqlsrv --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Generic
|
||||
@@ -579,25 +589,23 @@ RUN set -eux \
|
||||
&& true
|
||||
|
||||
|
||||
# -------------------- Installing PHP Extension: ssh2 --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Generic
|
||||
# Type: PECL extension
|
||||
# Default: Pecl command
|
||||
&& pecl install ssh2-1.2 \
|
||||
# Enabling
|
||||
&& docker-php-ext-enable ssh2 \
|
||||
&& true
|
||||
|
||||
|
||||
# -------------------- Installing PHP Extension: swoole --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Version specific
|
||||
# Type: GIT extension
|
||||
&& git clone https://github.com/swoole/swoole-src /tmp/swoole \
|
||||
&& cd /tmp/swoole \
|
||||
# Custom: Branch
|
||||
&& git checkout $(git describe --abbrev=0 --tags) \
|
||||
# Custom: Install command
|
||||
&& phpize \
|
||||
&& ./configure \
|
||||
--enable-openssl \
|
||||
--enable-sockets \
|
||||
--enable-http2 \
|
||||
--enable-mysqlnd \
|
||||
--enable-coroutine-postgresql \
|
||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||
&& make install \
|
||||
\
|
||||
# Installation: Generic
|
||||
# Type: PECL extension
|
||||
# Custom: Pecl command
|
||||
&& yes yes | pecl install swoole \
|
||||
# Enabling
|
||||
&& docker-php-ext-enable swoole \
|
||||
&& true
|
||||
@@ -762,7 +770,6 @@ RUN set -eux \
|
||||
libenchant1c2a \
|
||||
libfbclient2 \
|
||||
libfreetype6 \
|
||||
libhiredis0.14 \
|
||||
libicu63 \
|
||||
libjpeg62-turbo \
|
||||
libmagickwand-6.q16-6 \
|
||||
@@ -774,6 +781,7 @@ RUN set -eux \
|
||||
librabbitmq4 \
|
||||
librdkafka1 \
|
||||
librecode0 \
|
||||
libssh2-1 \
|
||||
libsybdb5 \
|
||||
libtidy5deb1 \
|
||||
libvpx5 \
|
||||
@@ -955,10 +963,14 @@ RUN set -eux \
|
||||
&& php-fpm -m | grep -oiE '^sockets$' \
|
||||
&& php -m | grep -oiE '^sodium$' \
|
||||
&& php-fpm -m | grep -oiE '^sodium$' \
|
||||
&& php -m | grep -oiE '^solr$' \
|
||||
&& php-fpm -m | grep -oiE '^solr$' \
|
||||
&& php -m | grep -oiE '^spl$' \
|
||||
&& php-fpm -m | grep -oiE '^spl$' \
|
||||
&& php -m | grep -oiE '^sqlsrv$' \
|
||||
&& php-fpm -m | grep -oiE '^sqlsrv$' \
|
||||
&& php -m | grep -oiE '^ssh2$' \
|
||||
&& php-fpm -m | grep -oiE '^ssh2$' \
|
||||
&& php -m | grep -oiE '^swoole$' \
|
||||
&& php-fpm -m | grep -oiE '^swoole$' \
|
||||
&& php -m | grep -oiE '^sysvmsg$' \
|
||||
|
||||
Reference in New Issue
Block a user