@@ -58,8 +58,6 @@ docker-php-ext-install -j$(nproc) gd
5858docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/
5959docker-php-ext-install -j$( nproc) ldap
6060
61- # Note solr is missing. Ref: https://github.com/moodlehq/moodle-php-apache/issues/19
62-
6361# Memcached, MongoDB, Redis, APCu, igbinary.
6462pecl install memcached mongodb redis apcu igbinary
6563docker-php-ext-enable memcached redis apcu igbinary
@@ -70,6 +68,19 @@ docker-php-ext-install zip
7068
7169echo ' apc.enable_cli = On' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini
7270
71+ # Install custom solr extension. Last release (2.4.0) is not working at all
72+ # with php72 and php73 and upstream has not either! Solution:
73+ # - current master (as of 21th May 2019):
74+ # https://github.com/php/pecl-search_engine-solr/commit/98a8bf540bcb4e9b2e1378cce2f3a9bf6cd772b8
75+ # - this patch, applied already upstream:
76+ # https://github.com/php/pecl-search_engine-solr/commit/744e32915d5989101267ed2c84a407c582dc6f31
77+ # So, following the experience with Macports, and https://bugs.php.net/bug.php?id=75631
78+ # we are going to try 2.4.0 release + macports patch. Old, but working right now.
79+ # References:
80+ # - https://github.com/moodlehq/moodle-php-apache/issues/16 (part of the php72 image discussion)
81+ # - https://github.com/moodlehq/moodle-php-apache/issues/19 (awaiting for a better solution)
82+ /tmp/setup/solr-extension.sh
83+
7384# Install Microsoft dependencies for sqlsrv.
7485# (kept apart for clarity, still need to be run here
7586# before some build packages are deleted)
0 commit comments