From be439edfb38534519c63744b13528230946dde7a Mon Sep 17 00:00:00 2001 From: cytopia Date: Mon, 5 Nov 2018 21:35:15 +0100 Subject: [PATCH] Fix swoole build --- Dockerfiles/mods/Dockerfile-5.2 | 321 ++++++---------- Dockerfiles/mods/Dockerfile-5.3 | 361 +++++++----------- Dockerfiles/mods/Dockerfile-5.4 | 365 +++++++------------ Dockerfiles/mods/Dockerfile-5.5 | 363 +++++++----------- Dockerfiles/mods/Dockerfile-5.6 | 359 +++++++----------- Dockerfiles/mods/Dockerfile-7.0 | 359 +++++++----------- Dockerfiles/mods/Dockerfile-7.1 | 361 +++++++----------- Dockerfiles/mods/Dockerfile-7.2 | 363 +++++++----------- Dockerfiles/mods/Dockerfile-7.3 | 337 ++++++----------- Dockerfiles/mods/Dockerfile-7.4 | 327 ++++++----------- build/ansible/DOCKERFILES/Dockerfile-mods.j2 | 34 +- build/ansible/group_vars/all.yml | 63 ++-- 12 files changed, 1319 insertions(+), 2294 deletions(-) diff --git a/Dockerfiles/mods/Dockerfile-5.2 b/Dockerfiles/mods/Dockerfile-5.2 index ca5ec871..b0f89df4 100644 --- a/Dockerfiles/mods/Dockerfile-5.2 +++ b/Dockerfiles/mods/Dockerfile-5.2 @@ -86,370 +86,271 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ +# ---- Installing PHP Extension: ioncube ---- && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ -&& tar xvfz ioncube.tar.gz \ +&& tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_5.2.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ - \ && (rm -rf /usr/local/lib/php/test/ioncube || true) \ && (rm -rf /usr/local/lib/php/doc/ioncube || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install amqp-1.4.0 \ - && docker-php-ext-enable amqp \ \ +# ---- Installing PHP Extension: amqp ---- + && pecl install amqp-1.4.0 >/dev/null\ + && docker-php-ext-enable amqp \ && (rm -rf /usr/local/lib/php/test/amqp || true) \ && (rm -rf /usr/local/lib/php/doc/amqp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && echo "/usr" | pecl install enchant \ +# ---- Installing PHP Extension: enchant ---- + && echo "/usr" | pecl install enchant >/dev/null \ && docker-php-ext-enable enchant \ - \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install fileinfo \ - && docker-php-ext-enable fileinfo \ \ +# ---- Installing PHP Extension: fileinfo ---- + && pecl install fileinfo >/dev/null\ + && docker-php-ext-enable fileinfo \ && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure ftp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ftp \ \ +# ---- Installing PHP Extension: ftp ---- + && /usr/local/bin/docker-php-ext-configure ftp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ftp >/dev/null \ && (rm -rf /usr/local/lib/php/test/ftp || true) \ && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ + \ +# ---- Installing PHP Extension: gd ---- && ln -s /usr/lib/x86_64-linux-gnu/libjpeg.* /usr/lib/ && \ ln -s /usr/lib/x86_64-linux-gnu/libpng.* /usr/lib/ && \ ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ && \ mkdir /usr/include/freetype2/freetype && \ ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h \ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ - \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary-2.0.7 \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary-2.0.7 >/dev/null\ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install intl \ - && docker-php-ext-enable intl \ \ +# ---- Installing PHP Extension: intl ---- + && pecl install intl >/dev/null\ + && docker-php-ext-enable intl \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mbstring || true) \ - && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt \ \ +# ---- Installing PHP Extension: mcrypt ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt >/dev/null \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcache \ - && docker-php-ext-enable memcache \ \ +# ---- Installing PHP Extension: memcache ---- + && pecl install memcache >/dev/null \ + && docker-php-ext-enable memcache \ && (rm -rf /usr/local/lib/php/test/memcache || true) \ && (rm -rf /usr/local/lib/php/doc/memcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcached-2.1.0 \ - && docker-php-ext-enable memcached \ \ +# ---- Installing PHP Extension: memcached ---- + && pecl install memcached-2.1.0 >/dev/null\ + && docker-php-ext-enable memcached \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && yes | pecl install mongo-1.5.8 \ - && docker-php-ext-enable mongo \ \ +# ---- Installing PHP Extension: mongo ---- + && yes | pecl install mongo-1.5.8 >/dev/null \ + && docker-php-ext-enable mongo \ && (rm -rf /usr/local/lib/php/test/mongo || true) \ && (rm -rf /usr/local/lib/php/doc/mongo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install msgpack-0.5.7 \ - && docker-php-ext-enable msgpack \ \ +# ---- Installing PHP Extension: msgpack ---- + && pecl install msgpack-0.5.7 >/dev/null\ + && docker-php-ext-enable msgpack \ && (rm -rf /usr/local/lib/php/test/msgpack || true) \ && (rm -rf /usr/local/lib/php/doc/msgpack || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysql || true) \ - && (rm -rf /usr/local/lib/php/doc/mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/mysqli || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install zendopcache \ +# ---- Installing PHP Extension: opcache ---- + && pecl install zendopcache >/dev/null \ && docker-php-ext-enable opcache \ - \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install phar \ - && docker-php-ext-enable phar \ \ +# ---- Installing PHP Extension: phar ---- + && pecl install phar >/dev/null\ + && docker-php-ext-enable phar \ && (rm -rf /usr/local/lib/php/test/phar || true) \ && (rm -rf /usr/local/lib/php/doc/phar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ \ +# ---- Installing PHP Extension: recode ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode >/dev/null \ && (rm -rf /usr/local/lib/php/test/recode || true) \ && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis-2.2.7 \ - && docker-php-ext-enable redis \ \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis-2.2.7 >/dev/null\ + && docker-php-ext-enable redis \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/soap || true) \ - && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && pecl install uploadprogress >/dev/null \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install xdebug-2.2.7 \ - && docker-php-ext-enable xdebug \ \ +# ---- Installing PHP Extension: xdebug ---- + && pecl install xdebug-2.2.7 >/dev/null\ + && docker-php-ext-enable xdebug \ && (rm -rf /usr/local/lib/php/test/xdebug || true) \ && (rm -rf /usr/local/lib/php/doc/xdebug || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-5.3 b/Dockerfiles/mods/Dockerfile-5.3 index 8693ef60..3df2736b 100644 --- a/Dockerfiles/mods/Dockerfile-5.3 +++ b/Dockerfiles/mods/Dockerfile-5.3 @@ -91,409 +91,314 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ +# ---- Installing PHP Extension: ioncube ---- && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ -&& tar xvfz ioncube.tar.gz \ +&& tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_5.3.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ - \ && (rm -rf /usr/local/lib/php/test/ioncube || true) \ && (rm -rf /usr/local/lib/php/doc/ioncube || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && echo "/usr" | pecl install amqp \ - && docker-php-ext-enable amqp \ \ +# ---- Installing PHP Extension: amqp ---- + && echo "/usr" | pecl install amqp >/dev/null \ + && docker-php-ext-enable amqp \ && (rm -rf /usr/local/lib/php/test/amqp || true) \ && (rm -rf /usr/local/lib/php/doc/amqp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install apcu-4.0.11 \ - && docker-php-ext-enable apcu \ \ +# ---- Installing PHP Extension: apcu ---- + && pecl install apcu-4.0.11 >/dev/null\ + && docker-php-ext-enable apcu \ && (rm -rf /usr/local/lib/php/test/apcu || true) \ && (rm -rf /usr/local/lib/php/doc/apcu || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure ftp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ftp \ \ +# ---- Installing PHP Extension: ftp ---- + && /usr/local/bin/docker-php-ext-configure ftp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ftp >/dev/null \ && (rm -rf /usr/local/lib/php/test/ftp || true) \ && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ && mkdir /usr/include/freetype2/freetype && ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ \ +# ---- Installing PHP Extension: gd ---- + && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ && mkdir /usr/include/freetype2/freetype && ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install imagick-3.3.0 \ - && docker-php-ext-enable imagick \ \ +# ---- Installing PHP Extension: imagick ---- + && pecl install imagick-3.3.0 >/dev/null\ + && docker-php-ext-enable imagick \ && (rm -rf /usr/local/lib/php/test/imagick || true) \ && (rm -rf /usr/local/lib/php/doc/imagick || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mbstring \ \ +# ---- Installing PHP Extension: mbstring ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mbstring >/dev/null \ && (rm -rf /usr/local/lib/php/test/mbstring || true) \ && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt \ \ +# ---- Installing PHP Extension: mcrypt ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt >/dev/null \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcache \ - && docker-php-ext-enable memcache \ \ +# ---- Installing PHP Extension: memcache ---- + && pecl install memcache >/dev/null \ + && docker-php-ext-enable memcache \ && (rm -rf /usr/local/lib/php/test/memcache || true) \ && (rm -rf /usr/local/lib/php/doc/memcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcached-2.2.0 \ - && docker-php-ext-enable memcached \ \ +# ---- Installing PHP Extension: memcached ---- + && pecl install memcached-2.2.0 >/dev/null\ + && docker-php-ext-enable memcached \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && yes | pecl install mongo \ - && docker-php-ext-enable mongo \ \ +# ---- Installing PHP Extension: mongo ---- + && yes | pecl install mongo > /dev/null \ + && docker-php-ext-enable mongo \ && (rm -rf /usr/local/lib/php/test/mongo || true) \ && (rm -rf /usr/local/lib/php/doc/mongo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb-0.6.3 \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb-0.6.3 >/dev/null\ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install msgpack-0.5.7 \ - && docker-php-ext-enable msgpack \ \ +# ---- Installing PHP Extension: msgpack ---- + && pecl install msgpack-0.5.7 >/dev/null\ + && docker-php-ext-enable msgpack \ && (rm -rf /usr/local/lib/php/test/msgpack || true) \ && (rm -rf /usr/local/lib/php/doc/msgpack || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysql || true) \ - && (rm -rf /usr/local/lib/php/doc/mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install zendopcache \ +# ---- Installing PHP Extension: opcache ---- + && pecl install zendopcache >/dev/null \ && docker-php-ext-enable opcache \ - \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/phalcon/cphalcon /tmp/phalcon \ + \ +# ---- Installing PHP Extension: phalcon ---- + && git clone https://github.com/phalcon/cphalcon /tmp/phalcon \ && cd /tmp/phalcon \ && git checkout phalcon-v2.0.9 \ - && cd build && ./install \ + && cd build && ./install >/dev/null \ && docker-php-ext-enable phalcon \ - \ && (rm -rf /usr/local/lib/php/test/phalcon || true) \ && (rm -rf /usr/local/lib/php/doc/phalcon || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/phar || true) \ - && (rm -rf /usr/local/lib/php/doc/phar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/recode || true) \ - && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis >/dev/null \ && docker-php-ext-enable redis \ - \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install swoole-1.9.23 \ - && docker-php-ext-enable swoole \ \ +# ---- Installing PHP Extension: swoole ---- + && pecl install swoole-1.9.23 >/dev/null\ + && docker-php-ext-enable swoole \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && pecl install uploadprogress >/dev/null \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install xdebug-2.2.7 \ - && docker-php-ext-enable xdebug \ \ +# ---- Installing PHP Extension: xdebug ---- + && pecl install xdebug-2.2.7 >/dev/null\ + && docker-php-ext-enable xdebug \ && (rm -rf /usr/local/lib/php/test/xdebug || true) \ && (rm -rf /usr/local/lib/php/doc/xdebug || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-5.4 b/Dockerfiles/mods/Dockerfile-5.4 index 5eb5ce44..5e5219f3 100644 --- a/Dockerfiles/mods/Dockerfile-5.4 +++ b/Dockerfiles/mods/Dockerfile-5.4 @@ -91,414 +91,319 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ +# ---- Installing PHP Extension: ioncube ---- && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ -&& tar xvfz ioncube.tar.gz \ +&& tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_5.4.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ - \ && (rm -rf /usr/local/lib/php/test/ioncube || true) \ && (rm -rf /usr/local/lib/php/doc/ioncube || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && echo "/usr" | pecl install amqp \ - && docker-php-ext-enable amqp \ \ +# ---- Installing PHP Extension: amqp ---- + && echo "/usr" | pecl install amqp >/dev/null \ + && docker-php-ext-enable amqp \ && (rm -rf /usr/local/lib/php/test/amqp || true) \ && (rm -rf /usr/local/lib/php/doc/amqp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install apcu-4.0.11 \ - && docker-php-ext-enable apcu \ \ +# ---- Installing PHP Extension: apcu ---- + && pecl install apcu-4.0.11 >/dev/null\ + && docker-php-ext-enable apcu \ && (rm -rf /usr/local/lib/php/test/apcu || true) \ && (rm -rf /usr/local/lib/php/doc/apcu || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure ftp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install ftp \ \ +# ---- Installing PHP Extension: ftp ---- + && /usr/local/bin/docker-php-ext-configure ftp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install ftp >/dev/null \ && (rm -rf /usr/local/lib/php/test/ftp || true) \ && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf \ - && /usr/local/bin/docker-php-ext-install gd \ \ +# ---- Installing PHP Extension: gd ---- + && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf >/dev/null \ + && /usr/local/bin/docker-php-ext-install gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install imagick \ - && docker-php-ext-enable imagick \ \ +# ---- Installing PHP Extension: imagick ---- + && pecl install imagick >/dev/null\ + && docker-php-ext-enable imagick \ && (rm -rf /usr/local/lib/php/test/imagick || true) \ && (rm -rf /usr/local/lib/php/doc/imagick || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install mbstring \ \ +# ---- Installing PHP Extension: mbstring ---- + && /usr/local/bin/docker-php-ext-install mbstring >/dev/null \ && (rm -rf /usr/local/lib/php/test/mbstring || true) \ && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install mcrypt \ \ +# ---- Installing PHP Extension: mcrypt ---- + && /usr/local/bin/docker-php-ext-install mcrypt >/dev/null \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcache \ - && docker-php-ext-enable memcache \ \ +# ---- Installing PHP Extension: memcache ---- + && pecl install memcache >/dev/null \ + && docker-php-ext-enable memcache \ && (rm -rf /usr/local/lib/php/test/memcache || true) \ && (rm -rf /usr/local/lib/php/doc/memcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcached-2.2.0 \ - && docker-php-ext-enable memcached \ \ +# ---- Installing PHP Extension: memcached ---- + && pecl install memcached-2.2.0 >/dev/null\ + && docker-php-ext-enable memcached \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && yes | pecl install mongo \ - && docker-php-ext-enable mongo \ \ +# ---- Installing PHP Extension: mongo ---- + && yes | pecl install mongo > /dev/null \ + && docker-php-ext-enable mongo \ && (rm -rf /usr/local/lib/php/test/mongo || true) \ && (rm -rf /usr/local/lib/php/doc/mongo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb-1.2.11 \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb-1.2.11 >/dev/null\ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install msgpack-0.5.7 \ - && docker-php-ext-enable msgpack \ \ +# ---- Installing PHP Extension: msgpack ---- + && pecl install msgpack-0.5.7 >/dev/null\ + && docker-php-ext-enable msgpack \ && (rm -rf /usr/local/lib/php/test/msgpack || true) \ && (rm -rf /usr/local/lib/php/doc/msgpack || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install mysql \ \ +# ---- Installing PHP Extension: mysql ---- + && /usr/local/bin/docker-php-ext-install mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysql || true) \ && (rm -rf /usr/local/lib/php/doc/mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install zendopcache \ +# ---- Installing PHP Extension: opcache ---- + && pecl install zendopcache >/dev/null \ && docker-php-ext-enable opcache \ - \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/phalcon/cphalcon /tmp/phalcon \ + \ +# ---- Installing PHP Extension: phalcon ---- + && git clone https://github.com/phalcon/cphalcon /tmp/phalcon \ && cd /tmp/phalcon \ && git checkout phalcon-v2.0.13 \ - && cd build && ./install \ + && cd build && ./install >/dev/null \ && docker-php-ext-enable phalcon \ - \ && (rm -rf /usr/local/lib/php/test/phalcon || true) \ && (rm -rf /usr/local/lib/php/doc/phalcon || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/phar || true) \ - && (rm -rf /usr/local/lib/php/doc/phar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/recode || true) \ - && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis >/dev/null \ && docker-php-ext-enable redis \ - \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install swoole-1.9.23 \ - && docker-php-ext-enable swoole \ \ +# ---- Installing PHP Extension: swoole ---- + && pecl install swoole-1.9.23 >/dev/null\ + && docker-php-ext-enable swoole \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && pecl install uploadprogress >/dev/null \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install xdebug-2.4.1 \ - && docker-php-ext-enable xdebug \ \ +# ---- Installing PHP Extension: xdebug ---- + && pecl install xdebug-2.4.1 >/dev/null\ + && docker-php-ext-enable xdebug \ && (rm -rf /usr/local/lib/php/test/xdebug || true) \ && (rm -rf /usr/local/lib/php/doc/xdebug || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr \ - && /usr/local/bin/docker-php-ext-install zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-5.5 b/Dockerfiles/mods/Dockerfile-5.5 index b26cbbf6..f3910488 100644 --- a/Dockerfiles/mods/Dockerfile-5.5 +++ b/Dockerfiles/mods/Dockerfile-5.5 @@ -92,411 +92,312 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ +# ---- Installing PHP Extension: ioncube ---- && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ -&& tar xvfz ioncube.tar.gz \ +&& tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_5.5.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ - \ && (rm -rf /usr/local/lib/php/test/ioncube || true) \ && (rm -rf /usr/local/lib/php/doc/ioncube || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && echo "/usr" | pecl install amqp \ - && docker-php-ext-enable amqp \ \ +# ---- Installing PHP Extension: amqp ---- + && echo "/usr" | pecl install amqp >/dev/null \ + && docker-php-ext-enable amqp \ && (rm -rf /usr/local/lib/php/test/amqp || true) \ && (rm -rf /usr/local/lib/php/doc/amqp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install apcu-4.0.11 \ - && docker-php-ext-enable apcu \ \ +# ---- Installing PHP Extension: apcu ---- + && pecl install apcu-4.0.11 >/dev/null\ + && docker-php-ext-enable apcu \ && (rm -rf /usr/local/lib/php/test/apcu || true) \ && (rm -rf /usr/local/lib/php/doc/apcu || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ftp || true) \ - && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: gd ---- && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ - \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install imagick \ - && docker-php-ext-enable imagick \ \ +# ---- Installing PHP Extension: imagick ---- + && pecl install imagick >/dev/null\ + && docker-php-ext-enable imagick \ && (rm -rf /usr/local/lib/php/test/imagick || true) \ && (rm -rf /usr/local/lib/php/doc/imagick || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mbstring || true) \ - && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt \ \ +# ---- Installing PHP Extension: mcrypt ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt >/dev/null \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcache \ - && docker-php-ext-enable memcache \ \ +# ---- Installing PHP Extension: memcache ---- + && pecl install memcache >/dev/null \ + && docker-php-ext-enable memcache \ && (rm -rf /usr/local/lib/php/test/memcache || true) \ && (rm -rf /usr/local/lib/php/doc/memcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcached-2.2.0 \ - && docker-php-ext-enable memcached \ \ +# ---- Installing PHP Extension: memcached ---- + && pecl install memcached-2.2.0 >/dev/null\ + && docker-php-ext-enable memcached \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && yes | pecl install mongo \ - && docker-php-ext-enable mongo \ \ +# ---- Installing PHP Extension: mongo ---- + && yes | pecl install mongo > /dev/null \ + && docker-php-ext-enable mongo \ && (rm -rf /usr/local/lib/php/test/mongo || true) \ && (rm -rf /usr/local/lib/php/doc/mongo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb >/dev/null \ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install msgpack-0.5.7 \ - && docker-php-ext-enable msgpack \ \ +# ---- Installing PHP Extension: msgpack ---- + && pecl install msgpack-0.5.7 >/dev/null\ + && docker-php-ext-enable msgpack \ && (rm -rf /usr/local/lib/php/test/msgpack || true) \ && (rm -rf /usr/local/lib/php/doc/msgpack || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysql \ \ +# ---- Installing PHP Extension: mysql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysql || true) \ && (rm -rf /usr/local/lib/php/doc/mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \ \ +# ---- Installing PHP Extension: opcache ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache >/dev/null \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/phalcon/cphalcon /tmp/phalcon \ + \ +# ---- Installing PHP Extension: phalcon ---- + && git clone https://github.com/phalcon/cphalcon /tmp/phalcon \ && cd /tmp/phalcon \ && git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | tail -1 | sed 's/^.*tags\///g') \ - && cd build && ./install \ + && cd build && ./install >/dev/null \ && docker-php-ext-enable phalcon \ - \ && (rm -rf /usr/local/lib/php/test/phalcon || true) \ && (rm -rf /usr/local/lib/php/doc/phalcon || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/phar || true) \ - && (rm -rf /usr/local/lib/php/doc/phar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ \ +# ---- Installing PHP Extension: recode ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode >/dev/null \ && (rm -rf /usr/local/lib/php/test/recode || true) \ && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis \ - && docker-php-ext-enable redis \ \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis >/dev/null \ + && docker-php-ext-enable redis \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install swoole-1.9.23 \ - && docker-php-ext-enable swoole \ \ +# ---- Installing PHP Extension: swoole ---- + && pecl install swoole-1.9.23 >/dev/null\ + && docker-php-ext-enable swoole \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && pecl install uploadprogress >/dev/null \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install xdebug-2.4.1 \ - && docker-php-ext-enable xdebug \ \ +# ---- Installing PHP Extension: xdebug ---- + && pecl install xdebug-2.4.1 >/dev/null\ + && docker-php-ext-enable xdebug \ && (rm -rf /usr/local/lib/php/test/xdebug || true) \ && (rm -rf /usr/local/lib/php/doc/xdebug || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-5.6 b/Dockerfiles/mods/Dockerfile-5.6 index 699e2f19..ccdfac1e 100644 --- a/Dockerfiles/mods/Dockerfile-5.6 +++ b/Dockerfiles/mods/Dockerfile-5.6 @@ -96,407 +96,312 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ +# ---- Installing PHP Extension: ioncube ---- && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ -&& tar xvfz ioncube.tar.gz \ +&& tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_5.6.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ - \ && (rm -rf /usr/local/lib/php/test/ioncube || true) \ && (rm -rf /usr/local/lib/php/doc/ioncube || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && echo "/usr" | pecl install amqp \ - && docker-php-ext-enable amqp \ \ +# ---- Installing PHP Extension: amqp ---- + && echo "/usr" | pecl install amqp >/dev/null \ + && docker-php-ext-enable amqp \ && (rm -rf /usr/local/lib/php/test/amqp || true) \ && (rm -rf /usr/local/lib/php/doc/amqp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install apcu-4.0.11 \ - && docker-php-ext-enable apcu \ \ +# ---- Installing PHP Extension: apcu ---- + && pecl install apcu-4.0.11 >/dev/null\ + && docker-php-ext-enable apcu \ && (rm -rf /usr/local/lib/php/test/apcu || true) \ && (rm -rf /usr/local/lib/php/doc/apcu || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/ftp || true) \ - && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: gd ---- && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ - \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install imagick \ - && docker-php-ext-enable imagick \ \ +# ---- Installing PHP Extension: imagick ---- + && pecl install imagick >/dev/null \ + && docker-php-ext-enable imagick \ && (rm -rf /usr/local/lib/php/test/imagick || true) \ && (rm -rf /usr/local/lib/php/doc/imagick || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mbstring || true) \ - && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt \ \ +# ---- Installing PHP Extension: mcrypt ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt >/dev/null \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcache \ - && docker-php-ext-enable memcache \ \ +# ---- Installing PHP Extension: memcache ---- + && pecl install memcache >/dev/null \ + && docker-php-ext-enable memcache \ && (rm -rf /usr/local/lib/php/test/memcache || true) \ && (rm -rf /usr/local/lib/php/doc/memcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcached-2.2.0 \ - && docker-php-ext-enable memcached \ \ +# ---- Installing PHP Extension: memcached ---- + && pecl install memcached-2.2.0 >/dev/null\ + && docker-php-ext-enable memcached \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && yes | pecl install mongo \ - && docker-php-ext-enable mongo \ \ +# ---- Installing PHP Extension: mongo ---- + && yes | pecl install mongo > /dev/null \ + && docker-php-ext-enable mongo \ && (rm -rf /usr/local/lib/php/test/mongo || true) \ && (rm -rf /usr/local/lib/php/doc/mongo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb >/dev/null \ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install msgpack-0.5.7 \ - && docker-php-ext-enable msgpack \ \ +# ---- Installing PHP Extension: msgpack ---- + && pecl install msgpack-0.5.7 >/dev/null\ + && docker-php-ext-enable msgpack \ && (rm -rf /usr/local/lib/php/test/msgpack || true) \ && (rm -rf /usr/local/lib/php/doc/msgpack || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysql \ \ +# ---- Installing PHP Extension: mysql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysql || true) \ && (rm -rf /usr/local/lib/php/doc/mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \ \ +# ---- Installing PHP Extension: opcache ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache >/dev/null \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/phalcon/cphalcon /tmp/phalcon \ + \ +# ---- Installing PHP Extension: phalcon ---- + && git clone https://github.com/phalcon/cphalcon /tmp/phalcon \ && cd /tmp/phalcon \ && git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | tail -1 | sed 's/^.*tags\///g') \ - && cd build && ./install \ + && cd build && ./install >/dev/null \ && docker-php-ext-enable phalcon \ - \ && (rm -rf /usr/local/lib/php/test/phalcon || true) \ && (rm -rf /usr/local/lib/php/doc/phalcon || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ \ +# ---- Installing PHP Extension: recode ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode >/dev/null \ && (rm -rf /usr/local/lib/php/test/recode || true) \ && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis \ - && docker-php-ext-enable redis \ \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis >/dev/null \ + && docker-php-ext-enable redis \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install swoole-1.9.23 \ - && docker-php-ext-enable swoole \ \ +# ---- Installing PHP Extension: swoole ---- + && pecl install swoole-1.9.23 >/dev/null\ + && docker-php-ext-enable swoole \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && pecl install uploadprogress >/dev/null \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install xdebug-2.4.1 \ - && docker-php-ext-enable xdebug \ \ +# ---- Installing PHP Extension: xdebug ---- + && pecl install xdebug-2.4.1 >/dev/null\ + && docker-php-ext-enable xdebug \ && (rm -rf /usr/local/lib/php/test/xdebug || true) \ && (rm -rf /usr/local/lib/php/doc/xdebug || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-7.0 b/Dockerfiles/mods/Dockerfile-7.0 index 83bcc42a..1a467741 100644 --- a/Dockerfiles/mods/Dockerfile-7.0 +++ b/Dockerfiles/mods/Dockerfile-7.0 @@ -95,407 +95,316 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ +# ---- Installing PHP Extension: ioncube ---- && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ -&& tar xvfz ioncube.tar.gz \ +&& tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_7.0.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ - \ && (rm -rf /usr/local/lib/php/test/ioncube || true) \ && (rm -rf /usr/local/lib/php/doc/ioncube || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && echo "/usr" | pecl install amqp \ - && docker-php-ext-enable amqp \ \ +# ---- Installing PHP Extension: amqp ---- + && echo "/usr" | pecl install amqp >/dev/null \ + && docker-php-ext-enable amqp \ && (rm -rf /usr/local/lib/php/test/amqp || true) \ && (rm -rf /usr/local/lib/php/doc/amqp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install apcu \ - && docker-php-ext-enable apcu \ \ +# ---- Installing PHP Extension: apcu ---- + && pecl install apcu >/dev/null \ + && docker-php-ext-enable apcu \ && (rm -rf /usr/local/lib/php/test/apcu || true) \ && (rm -rf /usr/local/lib/php/doc/apcu || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/ftp || true) \ - && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: gd ---- && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ - \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install imagick \ - && docker-php-ext-enable imagick \ \ +# ---- Installing PHP Extension: imagick ---- + && pecl install imagick >/dev/null \ + && docker-php-ext-enable imagick \ && (rm -rf /usr/local/lib/php/test/imagick || true) \ && (rm -rf /usr/local/lib/php/doc/imagick || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mbstring || true) \ - && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt \ \ +# ---- Installing PHP Extension: mcrypt ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt >/dev/null \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/websupport-sk/pecl-memcache /tmp/memcache \ + \ +# ---- Installing PHP Extension: memcache ---- + && git clone https://github.com/websupport-sk/pecl-memcache /tmp/memcache \ && cd /tmp/memcache \ && phpize \ - && ./configure --with-zlib-dir=/usr \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure --with-zlib-dir=/usr >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ && docker-php-ext-enable memcache \ - \ && (rm -rf /usr/local/lib/php/test/memcache || true) \ && (rm -rf /usr/local/lib/php/doc/memcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcached \ - && docker-php-ext-enable memcached \ \ +# ---- Installing PHP Extension: memcached ---- + && pecl install memcached >/dev/null \ + && docker-php-ext-enable memcached \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb >/dev/null \ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install msgpack \ - && docker-php-ext-enable msgpack \ \ +# ---- Installing PHP Extension: msgpack ---- + && pecl install msgpack >/dev/null \ + && docker-php-ext-enable msgpack \ && (rm -rf /usr/local/lib/php/test/msgpack || true) \ && (rm -rf /usr/local/lib/php/doc/msgpack || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \ \ +# ---- Installing PHP Extension: opcache ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache >/dev/null \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo \ \ +# ---- Installing PHP Extension: pdo ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo || true) \ && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ \ +# ---- Installing PHP Extension: pdo_dblib ---- + && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/phalcon/cphalcon /tmp/phalcon \ + \ +# ---- Installing PHP Extension: phalcon ---- + && git clone https://github.com/phalcon/cphalcon /tmp/phalcon \ && cd /tmp/phalcon \ && git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | tail -1 | sed 's/^.*tags\///g') \ - && cd build && ./install \ + && cd build && ./install >/dev/null \ && docker-php-ext-enable phalcon \ - \ && (rm -rf /usr/local/lib/php/test/phalcon || true) \ && (rm -rf /usr/local/lib/php/doc/phalcon || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ \ +# ---- Installing PHP Extension: recode ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode >/dev/null \ && (rm -rf /usr/local/lib/php/test/recode || true) \ && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis \ - && docker-php-ext-enable redis \ \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis >/dev/null \ + && docker-php-ext-enable redis \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install swoole-2.2.0 \ - && docker-php-ext-enable swoole \ \ +# ---- Installing PHP Extension: swoole ---- + && pecl install swoole >/dev/null \ + && docker-php-ext-enable swoole \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ && cd /tmp/uploadprogress \ && phpize \ - && ./configure --enable-uploadprogress \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure --enable-uploadprogress >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install xdebug \ - && docker-php-ext-enable xdebug \ \ +# ---- Installing PHP Extension: xdebug ---- + && pecl install xdebug >/dev/null \ + && docker-php-ext-enable xdebug \ && (rm -rf /usr/local/lib/php/test/xdebug || true) \ && (rm -rf /usr/local/lib/php/doc/xdebug || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-7.1 b/Dockerfiles/mods/Dockerfile-7.1 index 9b2eaf36..19b5664e 100644 --- a/Dockerfiles/mods/Dockerfile-7.1 +++ b/Dockerfiles/mods/Dockerfile-7.1 @@ -95,410 +95,311 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ +# ---- Installing PHP Extension: ioncube ---- && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ -&& tar xvfz ioncube.tar.gz \ +&& tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_7.1.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ - \ && (rm -rf /usr/local/lib/php/test/ioncube || true) \ && (rm -rf /usr/local/lib/php/doc/ioncube || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && echo "/usr" | pecl install amqp \ - && docker-php-ext-enable amqp \ \ +# ---- Installing PHP Extension: amqp ---- + && echo "/usr" | pecl install amqp >/dev/null \ + && docker-php-ext-enable amqp \ && (rm -rf /usr/local/lib/php/test/amqp || true) \ && (rm -rf /usr/local/lib/php/doc/amqp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install apcu \ - && docker-php-ext-enable apcu \ \ +# ---- Installing PHP Extension: apcu ---- + && pecl install apcu >/dev/null \ + && docker-php-ext-enable apcu \ && (rm -rf /usr/local/lib/php/test/apcu || true) \ && (rm -rf /usr/local/lib/php/doc/apcu || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/ftp || true) \ - && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: gd ---- && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ - \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install imagick \ - && docker-php-ext-enable imagick \ \ +# ---- Installing PHP Extension: imagick ---- + && pecl install imagick >/dev/null \ + && docker-php-ext-enable imagick \ && (rm -rf /usr/local/lib/php/test/imagick || true) \ && (rm -rf /usr/local/lib/php/doc/imagick || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mbstring || true) \ - && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt \ \ +# ---- Installing PHP Extension: mcrypt ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mcrypt >/dev/null \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/websupport-sk/pecl-memcache /tmp/memcache \ + \ +# ---- Installing PHP Extension: memcache ---- + && git clone https://github.com/websupport-sk/pecl-memcache /tmp/memcache \ && cd /tmp/memcache \ && phpize \ - && ./configure --with-zlib-dir=/usr \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure --with-zlib-dir=/usr >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ && docker-php-ext-enable memcache \ - \ && (rm -rf /usr/local/lib/php/test/memcache || true) \ && (rm -rf /usr/local/lib/php/doc/memcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcached \ - && docker-php-ext-enable memcached \ \ +# ---- Installing PHP Extension: memcached ---- + && pecl install memcached >/dev/null \ + && docker-php-ext-enable memcached \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb >/dev/null \ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install msgpack \ - && docker-php-ext-enable msgpack \ \ +# ---- Installing PHP Extension: msgpack ---- + && pecl install msgpack >/dev/null \ + && docker-php-ext-enable msgpack \ && (rm -rf /usr/local/lib/php/test/msgpack || true) \ && (rm -rf /usr/local/lib/php/doc/msgpack || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \ \ +# ---- Installing PHP Extension: opcache ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache >/dev/null \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/phalcon/cphalcon /tmp/phalcon \ + \ +# ---- Installing PHP Extension: phalcon ---- + && git clone https://github.com/phalcon/cphalcon /tmp/phalcon \ && cd /tmp/phalcon \ && git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | tail -1 | sed 's/^.*tags\///g') \ - && cd build && ./install \ + && cd build && ./install >/dev/null \ && docker-php-ext-enable phalcon \ - \ && (rm -rf /usr/local/lib/php/test/phalcon || true) \ && (rm -rf /usr/local/lib/php/doc/phalcon || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/phar || true) \ - && (rm -rf /usr/local/lib/php/doc/phar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ \ +# ---- Installing PHP Extension: recode ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode >/dev/null \ && (rm -rf /usr/local/lib/php/test/recode || true) \ && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis \ - && docker-php-ext-enable redis \ \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis >/dev/null \ + && docker-php-ext-enable redis \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install swoole \ - && docker-php-ext-enable swoole \ \ +# ---- Installing PHP Extension: swoole ---- + && pecl install swoole >/dev/null \ + && docker-php-ext-enable swoole \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ && cd /tmp/uploadprogress \ && phpize \ - && ./configure --enable-uploadprogress \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure --enable-uploadprogress >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install xdebug \ - && docker-php-ext-enable xdebug \ \ +# ---- Installing PHP Extension: xdebug ---- + && pecl install xdebug >/dev/null \ + && docker-php-ext-enable xdebug \ && (rm -rf /usr/local/lib/php/test/xdebug || true) \ && (rm -rf /usr/local/lib/php/doc/xdebug || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-7.2 b/Dockerfiles/mods/Dockerfile-7.2 index 927a5787..5cf4d02e 100644 --- a/Dockerfiles/mods/Dockerfile-7.2 +++ b/Dockerfiles/mods/Dockerfile-7.2 @@ -95,415 +95,312 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ +# ---- Installing PHP Extension: ioncube ---- && EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ -&& tar xvfz ioncube.tar.gz \ +&& tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_7.2.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ && rm -rf ioncube \ && rm -rf ioncube.tar.gz \ \ - \ && (rm -rf /usr/local/lib/php/test/ioncube || true) \ && (rm -rf /usr/local/lib/php/doc/ioncube || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && echo "/usr" | pecl install amqp \ - && docker-php-ext-enable amqp \ \ +# ---- Installing PHP Extension: amqp ---- + && echo "/usr" | pecl install amqp >/dev/null \ + && docker-php-ext-enable amqp \ && (rm -rf /usr/local/lib/php/test/amqp || true) \ && (rm -rf /usr/local/lib/php/doc/amqp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install apcu \ - && docker-php-ext-enable apcu \ \ +# ---- Installing PHP Extension: apcu ---- + && pecl install apcu >/dev/null \ + && docker-php-ext-enable apcu \ && (rm -rf /usr/local/lib/php/test/apcu || true) \ && (rm -rf /usr/local/lib/php/doc/apcu || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/ftp || true) \ - && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: gd ---- && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ - \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install imagick \ - && docker-php-ext-enable imagick \ \ +# ---- Installing PHP Extension: imagick ---- + && pecl install imagick >/dev/null \ + && docker-php-ext-enable imagick \ && (rm -rf /usr/local/lib/php/test/imagick || true) \ && (rm -rf /usr/local/lib/php/doc/imagick || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/mbstring || true) \ - && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mcrypt-1.0.1 \ +# ---- Installing PHP Extension: mcrypt ---- + && pecl install mcrypt-1.0.1 >/dev/null\ && docker-php-ext-enable mcrypt \ - \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/websupport-sk/pecl-memcache /tmp/memcache \ + \ +# ---- Installing PHP Extension: memcache ---- + && git clone https://github.com/websupport-sk/pecl-memcache /tmp/memcache \ && cd /tmp/memcache \ && phpize \ - && ./configure --with-zlib-dir=/usr \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure --with-zlib-dir=/usr >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ && docker-php-ext-enable memcache \ - \ && (rm -rf /usr/local/lib/php/test/memcache || true) \ && (rm -rf /usr/local/lib/php/doc/memcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install memcached \ - && docker-php-ext-enable memcached \ \ +# ---- Installing PHP Extension: memcached ---- + && pecl install memcached >/dev/null \ + && docker-php-ext-enable memcached \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb >/dev/null \ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install msgpack \ - && docker-php-ext-enable msgpack \ \ +# ---- Installing PHP Extension: msgpack ---- + && pecl install msgpack >/dev/null \ + && docker-php-ext-enable msgpack \ && (rm -rf /usr/local/lib/php/test/msgpack || true) \ && (rm -rf /usr/local/lib/php/doc/msgpack || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \ \ +# ---- Installing PHP Extension: opcache ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache >/dev/null \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/phalcon/cphalcon /tmp/phalcon \ + \ +# ---- Installing PHP Extension: phalcon ---- + && git clone https://github.com/phalcon/cphalcon /tmp/phalcon \ && cd /tmp/phalcon \ && git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | tail -1 | sed 's/^.*tags\///g') \ - && cd build && ./install \ + && cd build && ./install >/dev/null \ && docker-php-ext-enable phalcon \ - \ && (rm -rf /usr/local/lib/php/test/phalcon || true) \ && (rm -rf /usr/local/lib/php/doc/phalcon || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/phar || true) \ - && (rm -rf /usr/local/lib/php/doc/phar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ \ +# ---- Installing PHP Extension: recode ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode >/dev/null \ && (rm -rf /usr/local/lib/php/test/recode || true) \ && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis \ - && docker-php-ext-enable redis \ \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis >/dev/null \ + && docker-php-ext-enable redis \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/sodium || true) \ - && (rm -rf /usr/local/lib/php/doc/sodium || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install swoole \ +# ---- Installing PHP Extension: swoole ---- + && pecl install swoole >/dev/null \ && docker-php-ext-enable swoole \ - \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ && cd /tmp/uploadprogress \ && phpize \ - && ./configure --enable-uploadprogress \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure --enable-uploadprogress >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install xdebug \ - && docker-php-ext-enable xdebug \ \ +# ---- Installing PHP Extension: xdebug ---- + && pecl install xdebug >/dev/null \ + && docker-php-ext-enable xdebug \ && (rm -rf /usr/local/lib/php/test/xdebug || true) \ && (rm -rf /usr/local/lib/php/doc/xdebug || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-7.3 b/Dockerfiles/mods/Dockerfile-7.3 index 6ca7e647..085cba2c 100644 --- a/Dockerfiles/mods/Dockerfile-7.3 +++ b/Dockerfiles/mods/Dockerfile-7.3 @@ -96,301 +96,215 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ - && pecl install apcu \ +# ---- Installing PHP Extension: apcu ---- + && pecl install apcu >/dev/null \ && docker-php-ext-enable apcu \ - \ && (rm -rf /usr/local/lib/php/test/apcu || true) \ && (rm -rf /usr/local/lib/php/doc/apcu || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ftp || true) \ - && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: gd ---- && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ - \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install imagick \ - && docker-php-ext-enable imagick \ \ +# ---- Installing PHP Extension: imagick ---- + && pecl install imagick >/dev/null \ + && docker-php-ext-enable imagick \ && (rm -rf /usr/local/lib/php/test/imagick || true) \ && (rm -rf /usr/local/lib/php/doc/imagick || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/mbstring || true) \ - && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mcrypt-1.0.1 \ +# ---- Installing PHP Extension: mcrypt ---- + && pecl install mcrypt-1.0.1 >/dev/null\ && docker-php-ext-enable mcrypt \ - \ && (rm -rf /usr/local/lib/php/test/mcrypt || true) \ && (rm -rf /usr/local/lib/php/doc/mcrypt || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/php-memcached-dev/php-memcached /tmp/memcached \ + \ +# ---- Installing PHP Extension: memcached ---- + && git clone https://github.com/php-memcached-dev/php-memcached /tmp/memcached \ && cd /tmp/memcached \ && git checkout master \ - && phpize && ./configure --enable-memcached && make -j$(getconf _NPROCESSORS_ONLN) && make install \ + && phpize && ./configure --enable-memcached >/dev/null && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null && make install \ && docker-php-ext-enable memcached \ - \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb >/dev/null \ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \ \ +# ---- Installing PHP Extension: opcache ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache >/dev/null \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/phar || true) \ - && (rm -rf /usr/local/lib/php/doc/phar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ \ +# ---- Installing PHP Extension: recode ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode >/dev/null \ && (rm -rf /usr/local/lib/php/test/recode || true) \ && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install redis \ - && docker-php-ext-enable redis \ \ +# ---- Installing PHP Extension: redis ---- + && pecl install redis >/dev/null \ + && docker-php-ext-enable redis \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/sodium || true) \ - && (rm -rf /usr/local/lib/php/doc/sodium || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/swoole/swoole-src /tmp/swoole \ +# ---- Installing PHP Extension: swoole ---- + && git clone https://github.com/swoole/swoole-src /tmp/swoole \ && cd /tmp/swoole \ && git checkout master \ && git checkout $(git describe --abbrev=0 --tags) \ && git submodule update --init --recursive \ -&& cd thirdparty/hiredis \ -&& make -j$(getconf _NPROCESSORS_ONLN) \ -&& make install \ -&& cd ../nghttp2 \ -&& cmake . \ +#`&& cd thirdparty/hiredis` \ +#`&& make -j$(getconf _NPROCESSORS_ONLN) >/dev/null` \ +#`&& make install` \ +#`&& cd ../../` \ +&& cd thirdparty/nghttp2 \ +&& cmake . >/dev/null \ && make install \ && ldconfig \ && cd ../.. \ @@ -415,83 +329,68 @@ RUN set -x \ #`--enable-http2` \ #`--enable-sockets` \ #`--with-libpq-dir=/usr/include/postgresql/libpq/` \ -&& make -j$(getconf _NPROCESSORS_ONLN) \ + >/dev/null \ +&& make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ \ && docker-php-ext-enable swoole \ - \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ && cd /tmp/uploadprogress \ && phpize \ - && ./configure --enable-uploadprogress \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure --enable-uploadprogress >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/Dockerfiles/mods/Dockerfile-7.4 b/Dockerfiles/mods/Dockerfile-7.4 index f1910308..b6c62704 100644 --- a/Dockerfiles/mods/Dockerfile-7.4 +++ b/Dockerfiles/mods/Dockerfile-7.4 @@ -92,298 +92,212 @@ RUN set -x \ ${BUILD_DEPS} \ \ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \ - \ +# ---- Installing PHP Extension: bcmath ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath >/dev/null \ && (rm -rf /usr/local/lib/php/test/bcmath || true) \ && (rm -rf /usr/local/lib/php/doc/bcmath || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 \ \ +# ---- Installing PHP Extension: bz2 ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bz2 >/dev/null \ && (rm -rf /usr/local/lib/php/test/bz2 || true) \ && (rm -rf /usr/local/lib/php/doc/bz2 || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar \ \ +# ---- Installing PHP Extension: calendar ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) calendar >/dev/null \ && (rm -rf /usr/local/lib/php/test/calendar || true) \ && (rm -rf /usr/local/lib/php/doc/calendar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ctype || true) \ - && (rm -rf /usr/local/lib/php/doc/ctype || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/curl || true) \ - && (rm -rf /usr/local/lib/php/doc/curl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba \ \ +# ---- Installing PHP Extension: dba ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) dba >/dev/null \ && (rm -rf /usr/local/lib/php/test/dba || true) \ && (rm -rf /usr/local/lib/php/doc/dba || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/dom || true) \ - && (rm -rf /usr/local/lib/php/doc/dom || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \ \ +# ---- Installing PHP Extension: enchant ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant >/dev/null \ && (rm -rf /usr/local/lib/php/test/enchant || true) \ && (rm -rf /usr/local/lib/php/doc/enchant || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \ \ +# ---- Installing PHP Extension: exif ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif >/dev/null \ && (rm -rf /usr/local/lib/php/test/exif || true) \ && (rm -rf /usr/local/lib/php/doc/exif || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/fileinfo || true) \ - && (rm -rf /usr/local/lib/php/doc/fileinfo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/filter || true) \ - && (rm -rf /usr/local/lib/php/doc/filter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/ftp || true) \ - && (rm -rf /usr/local/lib/php/doc/ftp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: gd ---- && ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \ - \ + && /usr/local/bin/docker-php-ext-configure gd --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd >/dev/null \ && (rm -rf /usr/local/lib/php/test/gd || true) \ && (rm -rf /usr/local/lib/php/doc/gd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext \ \ +# ---- Installing PHP Extension: gettext ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gettext >/dev/null \ && (rm -rf /usr/local/lib/php/test/gettext || true) \ && (rm -rf /usr/local/lib/php/doc/gettext || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp \ \ +# ---- Installing PHP Extension: gmp ---- + && ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/ \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/gmp || true) \ && (rm -rf /usr/local/lib/php/doc/gmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/hash || true) \ - && (rm -rf /usr/local/lib/php/doc/hash || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/iconv || true) \ - && (rm -rf /usr/local/lib/php/doc/iconv || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install igbinary \ +# ---- Installing PHP Extension: igbinary ---- + && pecl install igbinary >/dev/null \ && docker-php-ext-enable igbinary \ - \ && (rm -rf /usr/local/lib/php/test/igbinary || true) \ && (rm -rf /usr/local/lib/php/doc/igbinary || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap \ \ +# ---- Installing PHP Extension: imap ---- + && ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/ \ + && /usr/local/bin/docker-php-ext-configure imap --with-kerberos --with-imap-ssl --with-imap >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) imap >/dev/null \ && (rm -rf /usr/local/lib/php/test/imap || true) \ && (rm -rf /usr/local/lib/php/doc/imap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase \ \ +# ---- Installing PHP Extension: interbase ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) interbase >/dev/null \ && (rm -rf /usr/local/lib/php/test/interbase || true) \ && (rm -rf /usr/local/lib/php/doc/interbase || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \ \ +# ---- Installing PHP Extension: intl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl >/dev/null \ && (rm -rf /usr/local/lib/php/test/intl || true) \ && (rm -rf /usr/local/lib/php/doc/intl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/json || true) \ - && (rm -rf /usr/local/lib/php/doc/json || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: ldap ---- && ln -s /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap \ - \ + && /usr/local/bin/docker-php-ext-configure ldap --with-ldap --with-ldap-sasl >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ldap >/dev/null \ && (rm -rf /usr/local/lib/php/test/ldap || true) \ && (rm -rf /usr/local/lib/php/doc/ldap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/libxml || true) \ - && (rm -rf /usr/local/lib/php/doc/libxml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mbstring || true) \ - && (rm -rf /usr/local/lib/php/doc/mbstring || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/php-memcached-dev/php-memcached /tmp/memcached \ +# ---- Installing PHP Extension: memcached ---- + && git clone https://github.com/php-memcached-dev/php-memcached /tmp/memcached \ && cd /tmp/memcached \ && git checkout master \ - && phpize && ./configure --enable-memcached && make -j$(getconf _NPROCESSORS_ONLN) && make install \ + && phpize && ./configure --enable-memcached >/dev/null && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null && make install \ && docker-php-ext-enable memcached \ - \ && (rm -rf /usr/local/lib/php/test/memcached || true) \ && (rm -rf /usr/local/lib/php/doc/memcached || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install mongodb \ - && docker-php-ext-enable mongodb \ \ +# ---- Installing PHP Extension: mongodb ---- + && pecl install mongodb >/dev/null \ + && docker-php-ext-enable mongodb \ && (rm -rf /usr/local/lib/php/test/mongodb || true) \ && (rm -rf /usr/local/lib/php/doc/mongodb || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \ \ +# ---- Installing PHP Extension: mysqli ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli >/dev/null \ && (rm -rf /usr/local/lib/php/test/mysqli || true) \ && (rm -rf /usr/local/lib/php/doc/mysqli || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/mysqlnd || true) \ - && (rm -rf /usr/local/lib/php/doc/mysqlnd || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \ \ +# ---- Installing PHP Extension: opcache ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache >/dev/null \ && (rm -rf /usr/local/lib/php/test/opcache || true) \ && (rm -rf /usr/local/lib/php/doc/opcache || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/openssl || true) \ - && (rm -rf /usr/local/lib/php/doc/openssl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \ \ +# ---- Installing PHP Extension: pcntl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl >/dev/null \ && (rm -rf /usr/local/lib/php/test/pcntl || true) \ && (rm -rf /usr/local/lib/php/doc/pcntl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pcre || true) \ - && (rm -rf /usr/local/lib/php/doc/pcre || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/pdo || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ +# ---- Installing PHP Extension: pdo_dblib ---- && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \ - \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_dblib || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_dblib || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \ \ +# ---- Installing PHP Extension: pdo_firebird ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_firebird || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_firebird || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql \ \ +# ---- Installing PHP Extension: pdo_mysql ---- + && /usr/local/bin/docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_mysql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \ \ +# ---- Installing PHP Extension: pdo_pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pdo_pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/pdo_sqlite || true) \ - && (rm -rf /usr/local/lib/php/doc/pdo_sqlite || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \ \ +# ---- Installing PHP Extension: pgsql ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql >/dev/null \ && (rm -rf /usr/local/lib/php/test/pgsql || true) \ && (rm -rf /usr/local/lib/php/doc/pgsql || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/phar || true) \ - && (rm -rf /usr/local/lib/php/doc/phar || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/posix || true) \ - && (rm -rf /usr/local/lib/php/doc/posix || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \ \ +# ---- Installing PHP Extension: pspell ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell >/dev/null \ && (rm -rf /usr/local/lib/php/test/pspell || true) \ && (rm -rf /usr/local/lib/php/doc/pspell || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/readline || true) \ - && (rm -rf /usr/local/lib/php/doc/readline || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode \ \ +# ---- Installing PHP Extension: recode ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) recode >/dev/null \ && (rm -rf /usr/local/lib/php/test/recode || true) \ && (rm -rf /usr/local/lib/php/doc/recode || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/phpredis/phpredis /tmp/redis \ + \ +# ---- Installing PHP Extension: redis ---- + && git clone https://github.com/phpredis/phpredis /tmp/redis \ && cd /tmp/redis \ && phpize \ && sed -i'' 's/ZEND_ACC_CTOR | //g' redis.c \ && sed -i'' 's/ZEND_ACC_DTOR | //g' redis.c \ && sed -i'' 's/ZEND_ACC_CTOR | //g' redis_cluster.c \ -&& ./configure \ -&& make -j8 \ +&& ./configure >/dev/null \ +&& make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ \ && docker-php-ext-enable redis \ - \ && (rm -rf /usr/local/lib/php/test/redis || true) \ && (rm -rf /usr/local/lib/php/doc/redis || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && pecl install rdkafka \ - && docker-php-ext-enable rdkafka \ \ +# ---- Installing PHP Extension: rdkafka ---- + && pecl install rdkafka >/dev/null \ + && docker-php-ext-enable rdkafka \ && (rm -rf /usr/local/lib/php/test/rdkafka || true) \ && (rm -rf /usr/local/lib/php/doc/rdkafka || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/session || true) \ - && (rm -rf /usr/local/lib/php/doc/session || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop \ \ +# ---- Installing PHP Extension: shmop ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) shmop >/dev/null \ && (rm -rf /usr/local/lib/php/test/shmop || true) \ && (rm -rf /usr/local/lib/php/doc/shmop || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/simplexml || true) \ - && (rm -rf /usr/local/lib/php/doc/simplexml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp \ \ +# ---- Installing PHP Extension: snmp ---- + && /usr/local/bin/docker-php-ext-configure snmp --with-openssl-dir >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) snmp >/dev/null \ && (rm -rf /usr/local/lib/php/test/snmp || true) \ && (rm -rf /usr/local/lib/php/doc/snmp || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \ \ +# ---- Installing PHP Extension: soap ---- + && /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap >/dev/null \ && (rm -rf /usr/local/lib/php/test/soap || true) \ && (rm -rf /usr/local/lib/php/doc/soap || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \ \ +# ---- Installing PHP Extension: sockets ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets >/dev/null \ && (rm -rf /usr/local/lib/php/test/sockets || true) \ && (rm -rf /usr/local/lib/php/doc/sockets || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/sodium || true) \ - && (rm -rf /usr/local/lib/php/doc/sodium || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/swoole/swoole-src /tmp/swoole \ +# ---- Installing PHP Extension: swoole ---- + && git clone https://github.com/swoole/swoole-src /tmp/swoole \ && cd /tmp/swoole \ && git checkout master \ && git checkout $(git describe --abbrev=0 --tags) \ && git submodule update --init --recursive \ -&& cd thirdparty/hiredis \ -&& make -j$(getconf _NPROCESSORS_ONLN) \ -&& make install \ -&& cd ../nghttp2 \ -&& cmake . \ +#`&& cd thirdparty/hiredis` \ +#`&& make -j$(getconf _NPROCESSORS_ONLN) >/dev/null` \ +#`&& make install` \ +#`&& cd ../../` \ +&& cd thirdparty/nghttp2 \ +&& cmake . >/dev/null \ && make install \ && ldconfig \ && cd ../.. \ && phpize \ && ./configure \ - --enable-async-redis \ + #`--enable-async-redis` \ --enable-openssl \ --enable-thread \ --enable-swoole \ @@ -402,83 +316,68 @@ RUN set -x \ #`--enable-http2` \ #`--enable-sockets` \ #`--with-libpq-dir=/usr/include/postgresql/libpq/` \ -&& make -j$(getconf _NPROCESSORS_ONLN) \ + >/dev/null \ +&& make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ \ && docker-php-ext-enable swoole \ - \ && (rm -rf /usr/local/lib/php/test/swoole || true) \ && (rm -rf /usr/local/lib/php/doc/swoole || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \ \ +# ---- Installing PHP Extension: sysvmsg ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvmsg || true) \ && (rm -rf /usr/local/lib/php/doc/sysvmsg || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \ \ +# ---- Installing PHP Extension: sysvsem ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvsem || true) \ && (rm -rf /usr/local/lib/php/doc/sysvsem || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \ \ +# ---- Installing PHP Extension: sysvshm ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm >/dev/null \ && (rm -rf /usr/local/lib/php/test/sysvshm || true) \ && (rm -rf /usr/local/lib/php/doc/sysvshm || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \ \ +# ---- Installing PHP Extension: tidy ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy >/dev/null \ && (rm -rf /usr/local/lib/php/test/tidy || true) \ && (rm -rf /usr/local/lib/php/doc/tidy || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ \ - && (rm -rf /usr/local/lib/php/test/tokenizer || true) \ - && (rm -rf /usr/local/lib/php/doc/tokenizer || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && git clone -v https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ +# ---- Installing PHP Extension: uploadprogress ---- + && git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \ && cd /tmp/uploadprogress \ && phpize \ - && ./configure --enable-uploadprogress \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure --enable-uploadprogress >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ && docker-php-ext-enable uploadprogress \ - \ && (rm -rf /usr/local/lib/php/test/uploadprogress || true) \ && (rm -rf /usr/local/lib/php/doc/uploadprogress || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx \ \ +# ---- Installing PHP Extension: wddx ---- + && /usr/local/bin/docker-php-ext-configure wddx --with-libxml-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) wddx >/dev/null \ && (rm -rf /usr/local/lib/php/test/wddx || true) \ && (rm -rf /usr/local/lib/php/doc/wddx || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xml || true) \ - && (rm -rf /usr/local/lib/php/doc/xml || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlreader || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlreader || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc \ \ +# ---- Installing PHP Extension: xmlrpc ---- + && /usr/local/bin/docker-php-ext-configure xmlrpc --with-libxml-dir=/usr --with-iconv-dir=/usr >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlrpc >/dev/null \ && (rm -rf /usr/local/lib/php/test/xmlrpc || true) \ && (rm -rf /usr/local/lib/php/doc/xmlrpc || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - \ - && (rm -rf /usr/local/lib/php/test/xmlwriter || true) \ - && (rm -rf /usr/local/lib/php/doc/xmlwriter || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \ \ +# ---- Installing PHP Extension: xsl ---- + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl >/dev/null \ && (rm -rf /usr/local/lib/php/test/xsl || true) \ && (rm -rf /usr/local/lib/php/doc/xsl || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ - && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \ - && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \ \ +# ---- Installing PHP Extension: zip ---- + && /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip >/dev/null \ + && /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip >/dev/null \ && (rm -rf /usr/local/lib/php/test/zip || true) \ && (rm -rf /usr/local/lib/php/doc/zip || true) \ + \ && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ diff --git a/build/ansible/DOCKERFILES/Dockerfile-mods.j2 b/build/ansible/DOCKERFILES/Dockerfile-mods.j2 index 461b77ab..ad15428b 100644 --- a/build/ansible/DOCKERFILES/Dockerfile-mods.j2 +++ b/build/ansible/DOCKERFILES/Dockerfile-mods.j2 @@ -86,6 +86,7 @@ RUN set -x \ {% for ext in extensions_enabled %} {# Not disabled AND not already enabled #} {% if (('disabled' not in extensions_available[ext]) or (php_version not in extensions_available[ext]['disabled'])) and ('already_avail' not in extensions_available[ext] or php_version not in extensions_available[ext]['already_avail']) %} +# ---- Installing PHP Extension: {{ ext }} ---- {# ---------- Pre Command ---------- #} {# Version specific pre-command available? #} {% if php_version in extensions_available[ext] and 'pre' in extensions_available[ext][php_version] %} @@ -99,20 +100,20 @@ RUN set -x \ {# ---- 1.) Builtin ---- #} {% if extensions_available[ext][php_version]['type'] == 'builtin' %} {% if 'configure' in extensions_available[ext][php_version] %} - && /usr/local/bin/docker-php-ext-configure {{ ext }} {{ extensions_available[ext][php_version]['configure'] }} \ + && /usr/local/bin/docker-php-ext-configure {{ ext }} {{ extensions_available[ext][php_version]['configure'] }} >/dev/null \ {% endif %} - && /usr/local/bin/docker-php-ext-install{% if php_version != 5.4 %} -j$(getconf _NPROCESSORS_ONLN){% endif %} {{ ext }} \ + && /usr/local/bin/docker-php-ext-install{% if php_version != 5.4 %} -j$(getconf _NPROCESSORS_ONLN){% endif %} {{ ext }} >/dev/null \ {# ---- 2.) PECL ---- #} {% elif extensions_available[ext][php_version]['type'] == 'pecl' %} {% if 'command' in extensions_available[ext][php_version] %} && {{ extensions_available[ext][php_version]['command'] }} \ {% else %} - && pecl install {{ ext }}{% if 'version' in extensions_available[ext][php_version] %}-{{ extensions_available[ext][php_version]['version'] }}{% endif %} \ + && pecl install {{ ext }}{% if 'version' in extensions_available[ext][php_version] %}-{{ extensions_available[ext][php_version]['version'] }}{% endif %} >/dev/null\ {% endif %} && docker-php-ext-enable {{ ext }} \ {# ---- 3.) GIT ---- #} {% elif extensions_available[ext][php_version]['type'] == 'git' %} - && git clone -v {{ extensions_available[ext][php_version]['git_url'] }} /tmp/{{ ext }} \ + && git clone {{ extensions_available[ext][php_version]['git_url'] }} /tmp/{{ ext }} \ && cd /tmp/{{ ext }} \ {% if 'git_ref' in extensions_available[ext][php_version] %} && git checkout {{ extensions_available[ext][php_version]['git_ref'] }} \ @@ -121,8 +122,8 @@ RUN set -x \ && {{ extensions_available[ext][php_version]['command'] }} \ {% else %} && phpize \ - && ./configure {% if 'configure' in extensions_available[ext][php_version] %} {{ extensions_available[ext][php_version]['configure'] }}{% endif %} \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure {% if 'configure' in extensions_available[ext][php_version] %} {{ extensions_available[ext][php_version]['configure'] }}{% endif %} >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ {% endif %} && docker-php-ext-enable {{ ext }} \ @@ -135,20 +136,20 @@ RUN set -x \ {# ---- 1.) Builtin ---- #} {% if extensions_available[ext]['all']['type'] == 'builtin' %} {% if 'configure' in extensions_available[ext]['all'] %} - && /usr/local/bin/docker-php-ext-configure {{ ext }} {{ extensions_available[ext]['all']['configure'] }} \ + && /usr/local/bin/docker-php-ext-configure {{ ext }} {{ extensions_available[ext]['all']['configure'] }} >/dev/null \ {% endif %} - && /usr/local/bin/docker-php-ext-install{% if php_version != 5.4 %} -j$(getconf _NPROCESSORS_ONLN){% endif %} {{ ext }} \ + && /usr/local/bin/docker-php-ext-install{% if php_version != 5.4 %} -j$(getconf _NPROCESSORS_ONLN){% endif %} {{ ext }} >/dev/null \ {# ---- 2.) PECL ---- #} {% elif extensions_available[ext]['all']['type'] == 'pecl' %} {% if 'command' in extensions_available[ext]['all'] %} && {{ extensions_available[ext]['all']['command'] }} \ {% else %} - && pecl install {{ ext }}{% if 'version' in extensions_available[ext]['all'] %}-{{ extensions_available[ext]['all']['version'] }}{% endif %} \ + && pecl install {{ ext }}{% if 'version' in extensions_available[ext]['all'] %}-{{ extensions_available[ext]['all']['version'] }}{% endif %} >/dev/null \ {% endif %} && docker-php-ext-enable {{ ext }} \ {# ---- 3.) GIT ---- #} {% elif extensions_available[ext]['all']['type'] == 'git' %} - && git clone -v {{ extensions_available[ext]['all']['git_url'] }} /tmp/{{ ext }} \ + && git clone {{ extensions_available[ext]['all']['git_url'] }} /tmp/{{ ext }} \ && cd /tmp/{{ ext }} \ {% if 'git_ref' in extensions_available[ext]['all'] %} && git checkout {{ extensions_available[ext]['all']['git_ref'] }} \ @@ -157,8 +158,8 @@ RUN set -x \ && {{ extensions_available[ext]['all']['command'] }} \ {% else %} && phpize \ - && ./configure {% if 'configure' in extensions_available[ext]['all'] %} {{ extensions_available[ext]['all']['configure'] }}{% endif %} \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + && ./configure {% if 'configure' in extensions_available[ext]['all'] %} {{ extensions_available[ext]['all']['configure'] }}{% endif %} >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ {% endif %} && docker-php-ext-enable {{ ext }} \ @@ -167,6 +168,10 @@ RUN set -x \ && {{ extensions_available[ext]['all']['command'] }} \ {% endif %} {% endif %} +{# Only delete files for extensions we've actually installed, not those that were already available by default #} + && (rm -rf /usr/local/lib/php/test/{{ ext }} || true) \ + && (rm -rf /usr/local/lib/php/doc/{{ ext }} || true) \ + \ {% endif %} {# Ensure modules that are not disabled have an appropriate ini directive and are loaded #} {% if ('disabled' not in extensions_available[ext]) or (php_version not in extensions_available[ext]['disabled']) %} @@ -175,12 +180,9 @@ RUN set -x \ {% elif 'all' in extensions_available[ext] and 'load_ext' in extensions_available[ext]['all'] %} && if [ ! -f "/usr/local/etc/php/conf.d/docker-php-ext-{{ ext }}.ini" ]; then echo "extenstion={{ extensions_available[ext]['all']['load_ext'] }}" > "/usr/local/etc/php/conf.d/docker-php-ext-{{ ext }}.ini"; fi \ {% endif %} - \ - && (rm -rf /usr/local/lib/php/test/{{ ext }} || true) \ - && (rm -rf /usr/local/lib/php/doc/{{ ext }} || true) \ - && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ {% endif %} {% endfor %} + && chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \ && rm -rf /tmp/* \ \ && DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ${BUILD_DEPS} \ diff --git a/build/ansible/group_vars/all.yml b/build/ansible/group_vars/all.yml index 7fa2963a..df3ffc58 100644 --- a/build/ansible/group_vars/all.yml +++ b/build/ansible/group_vars/all.yml @@ -793,7 +793,7 @@ extensions_available: run_dep: [librabbitmq1] all: type: pecl - command: echo "/usr" | pecl install amqp + command: echo "/usr" | pecl install amqp >/dev/null build_dep: [librabbitmq-dev] run_dep: [librabbitmq4] apcu: @@ -843,7 +843,7 @@ extensions_available: enchant: 5.2: type: pecl - command: echo "/usr" | pecl install enchant + command: echo "/usr" | pecl install enchant >/dev/null all: type: builtin build_dep: [libenchant-dev] @@ -997,7 +997,7 @@ extensions_available: EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ - && tar xvfz ioncube.tar.gz \ + && tar xvfz ioncube.tar.gz >/dev/null \ && cd ioncube \ && cp "ioncube_loader_lin_{{ php_version }}.so" "${EXTENSION_DIR}/ioncube.so" \ && cd ../ \ @@ -1071,12 +1071,12 @@ extensions_available: type: git git_url: https://github.com/php-memcached-dev/php-memcached git_ref: master - command: phpize && ./configure --enable-memcached && make -j$(getconf _NPROCESSORS_ONLN) && make install + command: phpize && ./configure --enable-memcached >/dev/null && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null && make install 7.4: type: git git_url: https://github.com/php-memcached-dev/php-memcached git_ref: master - command: phpize && ./configure --enable-memcached && make -j$(getconf _NPROCESSORS_ONLN) && make install + command: phpize && ./configure --enable-memcached >/dev/null && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null && make install all: type: pecl build_dep: [zlib1g-dev, libmemcached-dev] @@ -1085,10 +1085,10 @@ extensions_available: disabled: [7.0, 7.1, 7.2, 7.3, 7.4] # Deprecated 5.2: type: pecl - command: yes | pecl install mongo-1.5.8 + command: yes | pecl install mongo-1.5.8 >/dev/null all: type: pecl - command: yes | pecl install mongo + command: yes | pecl install mongo > /dev/null build_dep: [libssl-dev, libsasl2-dev] mongodb: disabled: [5.2] @@ -1143,13 +1143,13 @@ extensions_available: opcache: 5.2: type: pecl - command: pecl install zendopcache + command: pecl install zendopcache >/dev/null 5.3: type: pecl - command: pecl install zendopcache + command: pecl install zendopcache >/dev/null 5.4: type: pecl - command: pecl install zendopcache + command: pecl install zendopcache >/dev/null all: type: builtin openssl: @@ -1210,12 +1210,12 @@ extensions_available: type: git git_url: https://github.com/phalcon/cphalcon git_ref: phalcon-v2.0.9 - command: cd build && ./install + command: cd build && ./install >/dev/null 5.4: type: git git_url: https://github.com/phalcon/cphalcon git_ref: phalcon-v2.0.13 - command: cd build && ./install + command: cd build && ./install >/dev/null # 7.3: # type: git # git_url: https://github.com/phalcon/cphalcon @@ -1226,7 +1226,7 @@ extensions_available: type: git git_url: https://github.com/phalcon/cphalcon git_ref: $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | tail -1 | sed 's/^.*tags\///g') - command: cd build && ./install + command: cd build && ./install >/dev/null phar: # https://github.com/docker-library/php/issues/618 disabled: [5.6, 7.0] # TODO: Currently disabled due to bug in built @@ -1270,8 +1270,8 @@ extensions_available: && sed -i'' 's/ZEND_ACC_CTOR | //g' redis.c \ && sed -i'' 's/ZEND_ACC_DTOR | //g' redis.c \ && sed -i'' 's/ZEND_ACC_CTOR | //g' redis_cluster.c \ - && ./configure \ - && make -j8 \ + && ./configure >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ all: type: pecl @@ -1336,9 +1336,6 @@ extensions_available: 5.6: type: pecl version: 1.9.23 - 7.0: - type: pecl - version: 2.2.0 7.3: type: git git_url: https://github.com/swoole/swoole-src @@ -1346,11 +1343,12 @@ extensions_available: command: | git checkout $(git describe --abbrev=0 --tags) \ && git submodule update --init --recursive \ - && cd thirdparty/hiredis \ - && make -j$(getconf _NPROCESSORS_ONLN) \ - && make install \ - && cd ../nghttp2 \ - && cmake . \ + #`&& cd thirdparty/hiredis` \ + #`&& make -j$(getconf _NPROCESSORS_ONLN) >/dev/null` \ + #`&& make install` \ + #`&& cd ../../` \ + && cd thirdparty/nghttp2 \ + && cmake . >/dev/null \ && make install \ && ldconfig \ && cd ../.. \ @@ -1375,7 +1373,8 @@ extensions_available: #`--enable-http2` \ #`--enable-sockets` \ #`--with-libpq-dir=/usr/include/postgresql/libpq/` \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ run_dep: [libnghttp2-14, libhiredis0.13] build_dep: [libnghttp2-dev, libssl-dev, libhiredis-dev, cmake] @@ -1386,17 +1385,18 @@ extensions_available: command: | git checkout $(git describe --abbrev=0 --tags) \ && git submodule update --init --recursive \ - && cd thirdparty/hiredis \ - && make -j$(getconf _NPROCESSORS_ONLN) \ - && make install \ - && cd ../nghttp2 \ - && cmake . \ + #`&& cd thirdparty/hiredis` \ + #`&& make -j$(getconf _NPROCESSORS_ONLN) >/dev/null` \ + #`&& make install` \ + #`&& cd ../../` \ + && cd thirdparty/nghttp2 \ + && cmake . >/dev/null \ && make install \ && ldconfig \ && cd ../.. \ && phpize \ && ./configure \ - --enable-async-redis \ + #`--enable-async-redis` \ --enable-openssl \ --enable-thread \ --enable-swoole \ @@ -1415,7 +1415,8 @@ extensions_available: #`--enable-http2` \ #`--enable-sockets` \ #`--with-libpq-dir=/usr/include/postgresql/libpq/` \ - && make -j$(getconf _NPROCESSORS_ONLN) \ + >/dev/null \ + && make -j$(getconf _NPROCESSORS_ONLN) >/dev/null \ && make install \ run_dep: [libnghttp2-14, libhiredis0.13] build_dep: [libnghttp2-dev, libssl-dev, libhiredis-dev, cmake]