From 35d1665166dde8c5017bccb7f7d7233614b27dda Mon Sep 17 00:00:00 2001 From: Alexandre Choura <42672104+PROFeNoM@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:36:56 +0100 Subject: [PATCH] chore: Add the amqp extension to the buster images (#2970) * chore: Add the amqp extension to the buster images * chore: Add the librabbitmq library --- dockerfiles/ci/buster/Dockerfile | 1 + dockerfiles/ci/buster/build-extensions.sh | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/dockerfiles/ci/buster/Dockerfile b/dockerfiles/ci/buster/Dockerfile index 20139bc4df..dba7530c8b 100644 --- a/dockerfiles/ci/buster/Dockerfile +++ b/dockerfiles/ci/buster/Dockerfile @@ -26,6 +26,7 @@ ENV DEVLIBS \ libonig-dev \ libpq-dev \ libpng-dev \ + librabbitmq-dev \ libsodium-dev \ libsqlite3-dev \ libssl-dev \ diff --git a/dockerfiles/ci/buster/build-extensions.sh b/dockerfiles/ci/buster/build-extensions.sh index 1891f93358..e21e9a6fec 100755 --- a/dockerfiles/ci/buster/build-extensions.sh +++ b/dockerfiles/ci/buster/build-extensions.sh @@ -36,6 +36,13 @@ elif [[ $PHP_VERSION_ID -le 73 ]]; then MONGODB_VERSION=-1.16.2 fi +AMQP_VERSION= +if [[ $PHP_VERSION_ID -le 73 ]]; then + AMQP_VERSION=-1.11.0 +else + AMQP_VERSION=-2.1.2 +fi + AST_VERSION= if [[ $PHP_VERSION_ID -le 71 ]]; then AST_VERSION=-1.0.16 @@ -112,6 +119,7 @@ if [[ $SHARED_BUILD -ne 0 ]]; then else pecl channel-update pecl.php.net; + pecl install amqp$AMQP_VERSION; echo "extension=amqp.so" >> ${iniDir}/amqp.ini; yes '' | pecl install apcu; echo "extension=apcu.so" >> ${iniDir}/apcu.ini; pecl install ast$AST_VERSION; echo "extension=ast.so" >> ${iniDir}/ast.ini; if [[ $PHP_VERSION_ID -ge 71 && $PHP_VERSION_ID -le 80 ]]; then