Skip to content

Commit

Permalink
Add solr and ssh2 PHP modules
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Dec 28, 2019
1 parent 40d76f3 commit f053015
Show file tree
Hide file tree
Showing 12 changed files with 168 additions and 88 deletions.
2 changes: 1 addition & 1 deletion Dockerfiles/mods/Dockerfile-5.2
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ RUN set -eux \
# Installation: Version specific
# Type: PECL extension
# Custom: Pecl command
&& yes | pecl install mongo-1.5.8 \
&& yes yes | pecl install mongo-1.5.8 \
# Enabling
&& docker-php-ext-enable mongo \
&& true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/mods/Dockerfile-5.3
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Custom: Pecl command
&& yes | pecl install mongo \
&& yes yes | pecl install mongo \
# Enabling
&& docker-php-ext-enable mongo \
&& true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/mods/Dockerfile-5.4
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Custom: Pecl command
&& yes | pecl install mongo \
&& yes yes | pecl install mongo \
# Enabling
&& docker-php-ext-enable mongo \
&& true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/mods/Dockerfile-5.5
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Custom: Pecl command
&& yes | pecl install mongo \
&& yes yes | pecl install mongo \
# Enabling
&& docker-php-ext-enable mongo \
&& true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/mods/Dockerfile-5.6
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Custom: Pecl command
&& yes | pecl install mongo \
&& yes yes | pecl install mongo \
# Enabling
&& docker-php-ext-enable mongo \
&& true
Expand Down
15 changes: 15 additions & 0 deletions Dockerfiles/mods/Dockerfile-7.0
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN set -eux \
librecode-dev \
libsasl2-dev \
libsnmp-dev \
libssh2-1-dev \
libssl-dev \
libtidy-dev \
libvpx-dev \
Expand Down Expand Up @@ -574,6 +575,17 @@ 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
Expand Down Expand Up @@ -756,6 +768,7 @@ RUN set -eux \
librabbitmq4 \
librdkafka1 \
librecode0 \
libssh2-1 \
libsybdb5 \
libtidy5 \
libvpx4 \
Expand Down Expand Up @@ -938,6 +951,8 @@ RUN set -eux \
&& 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$' \
Expand Down
32 changes: 30 additions & 2 deletions Dockerfiles/mods/Dockerfile-7.1
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN set -eux \
librecode-dev \
libsasl2-dev \
libsnmp-dev \
libssh2-1-dev \
libssl-dev \
libtidy-dev \
libvpx-dev \
Expand Down Expand Up @@ -562,6 +563,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
Expand All @@ -573,12 +585,23 @@ RUN set -eux \
&& true


# -------------------- Installing PHP Extension: swoole --------------------
# -------------------- Installing PHP Extension: ssh2 --------------------
RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Default: Pecl command
&& pecl install swoole \
&& pecl install ssh2-1.2 \
# Enabling
&& docker-php-ext-enable ssh2 \
&& true


# -------------------- Installing PHP Extension: swoole --------------------
RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Custom: Pecl command
&& yes yes | pecl install swoole \
# Enabling
&& docker-php-ext-enable swoole \
&& true
Expand Down Expand Up @@ -754,6 +777,7 @@ RUN set -eux \
librabbitmq4 \
librdkafka1 \
librecode0 \
libssh2-1 \
libsybdb5 \
libtidy5deb1 \
libvpx5 \
Expand Down Expand Up @@ -933,10 +957,14 @@ RUN set -eux \
&& php-fpm -m | grep -oiE '^soap$' \
&& php -m | grep -oiE '^sockets$' \
&& php-fpm -m | grep -oiE '^sockets$' \
&& 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$' \
Expand Down
32 changes: 30 additions & 2 deletions Dockerfiles/mods/Dockerfile-7.2
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN set -eux \
librecode-dev \
libsasl2-dev \
libsnmp-dev \
libssh2-1-dev \
libssl-dev \
libtidy-dev \
libvpx-dev \
Expand Down Expand Up @@ -566,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
Expand All @@ -577,12 +589,23 @@ RUN set -eux \
&& true


# -------------------- Installing PHP Extension: swoole --------------------
# -------------------- Installing PHP Extension: ssh2 --------------------
RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Default: Pecl command
&& pecl install swoole \
&& pecl install ssh2-1.2 \
# Enabling
&& docker-php-ext-enable ssh2 \
&& true


# -------------------- Installing PHP Extension: swoole --------------------
RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Custom: Pecl command
&& yes yes | pecl install swoole \
# Enabling
&& docker-php-ext-enable swoole \
&& true
Expand Down Expand Up @@ -758,6 +781,7 @@ RUN set -eux \
librabbitmq4 \
librdkafka1 \
librecode0 \
libssh2-1 \
libsybdb5 \
libtidy5deb1 \
libvpx5 \
Expand Down Expand Up @@ -939,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$' \
Expand Down
52 changes: 32 additions & 20 deletions Dockerfiles/mods/Dockerfile-7.3
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -22,7 +21,6 @@ RUN set -eux \
libfbclient2 \
libfreetype6-dev \
libgmp-dev \
libhiredis-dev \
libib-util \
libicu-dev \
libjpeg-dev \
Expand All @@ -41,6 +39,7 @@ RUN set -eux \
librecode-dev \
libsasl2-dev \
libsnmp-dev \
libssh2-1-dev \
libssl-dev \
libtidy-dev \
libvpx-dev \
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -762,7 +770,6 @@ RUN set -eux \
libenchant1c2a \
libfbclient2 \
libfreetype6 \
libhiredis0.14 \
libicu63 \
libjpeg62-turbo \
libmagickwand-6.q16-6 \
Expand All @@ -774,6 +781,7 @@ RUN set -eux \
librabbitmq4 \
librdkafka1 \
librecode0 \
libssh2-1 \
libsybdb5 \
libtidy5deb1 \
libvpx5 \
Expand Down Expand Up @@ -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$' \
Expand Down
Loading

0 comments on commit f053015

Please sign in to comment.