fix(amqp extension): hard-code the version for PHP 8.0
The version could be hard-coded in the Dockerfile due to no ability to build workspace image w/o problems from scratch for different PHP versions. Closes #2871
This commit is contained in:
parent
c6040861b0
commit
50fce4c74b
|
@ -503,8 +503,12 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
ARG INSTALL_AMQP=false
|
ARG INSTALL_AMQP=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_AMQP} = true ]; then \
|
RUN if [ ${INSTALL_AMQP} = true ]; then \
|
||||||
apt-get install librabbitmq-dev -y && \
|
apt-get install -yqq librabbitmq-dev && \
|
||||||
pecl -q install amqp && \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
|
||||||
|
printf "\n" | pecl install amqp-1.11.0beta; \
|
||||||
|
else \
|
||||||
|
printf "\n" | pecl install amqp; \
|
||||||
|
fi && \
|
||||||
echo "extension=amqp.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/amqp.ini && \
|
echo "extension=amqp.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/amqp.ini && \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/amqp.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-amqp.ini \
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/amqp.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-amqp.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
Loading…
Reference in New Issue