Added amqp extension for PHP 8.0 and PHP 8.1

This commit is contained in:
cytopia
2022-01-26 12:46:55 +01:00
parent 1261f3a700
commit 9fbdc187d8
5 changed files with 34 additions and 3 deletions

View File

@@ -31,6 +31,7 @@ RUN set -eux \
libpng-dev \
libpq-dev \
libpspell-dev \
librabbitmq-dev \
libsasl2-dev \
libsnmp-dev \
libsodium-dev \
@@ -63,6 +64,17 @@ RUN set -eux \
echo "ffi.enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-ffi.ini; \
fi
# -------------------- Installing PHP Extension: amqp --------------------
RUN set -eux \
# Installation: Generic
# Type: PECL extension
# Custom: Pecl command
&& echo "/usr" | pecl install amqp \
# Enabling
&& docker-php-ext-enable amqp \
&& true
# -------------------- Installing PHP Extension: apcu --------------------
RUN set -eux \
# Installation: Generic
@@ -637,6 +649,7 @@ RUN set -eux \
libmemcachedutil2 \
libpng16-16 \
libpq5 \
librabbitmq4 \
libtidy5deb1 \
libvpx6 \
libwebp6 \
@@ -683,6 +696,8 @@ RUN set -eux \
&& if [ -n "${PHP_FPM_ERROR}" ]; then echo "${PHP_FPM_ERROR}"; false; fi \
&& rm -f /usr/local/etc/php/php.ini \
\
&& php -m | grep -oiE '^amqp$' \
&& php-fpm -m | grep -oiE '^amqp$' \
&& php -m | grep -oiE '^apcu$' \
&& php-fpm -m | grep -oiE '^apcu$' \
&& php -m | grep -oiE '^bcmath$' \