Skip to content

Commit

Permalink
chore: Add the amqp extension to the buster images (#2970)
Browse files Browse the repository at this point in the history
* chore: Add the amqp extension to the buster images

* chore: Add the librabbitmq library
  • Loading branch information
PROFeNoM authored Nov 21, 2024
1 parent ab52de5 commit 35d1665
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions dockerfiles/ci/buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ENV DEVLIBS \
libonig-dev \
libpq-dev \
libpng-dev \
librabbitmq-dev \
libsodium-dev \
libsqlite3-dev \
libssl-dev \
Expand Down
8 changes: 8 additions & 0 deletions dockerfiles/ci/buster/build-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 35d1665

Please sign in to comment.