Skip to content

Commit

Permalink
fix(amqp): release of amqp ext 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Frzk committed May 6, 2024
1 parent 03da1b1 commit ed5de22
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
3 changes: 2 additions & 1 deletion conf/buildpack.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ libonig_version="${libonig_version:-6.9.8}"
zlib_version="${zlib_version:-1.3}"
igbinary_version="3.2.15"
mongodb_version="1.18.1"
amqp_version="1.11.0"
librabbitmq_version="0.14.0"
amqp_version="2.1.2"
phpredis_version="6.0.2"
39 changes: 31 additions & 8 deletions support/ext/amqp
Original file line number Diff line number Diff line change
Expand Up @@ -177,31 +177,54 @@ librabbitmq_prefix="/app/vendor/php/lib/rabbitmq"

# librabbitmq
# https://github.com/alanxz/rabbitmq-c/releases

# Default `$version` is loaded from the buildpack.conf file.
pkgname="librabbitmq-c"
version="0.13.0"
source_url="https://github.com/alanxz/rabbitmq-c/archive/refs/tags/v%s.tar.gz"

if [ "${STACK}" = "scalingo-18" ]; then
version="0.11.0"
fi
case "${STACK}" in
"scalingo-18")
version="0.11.0"
;;
"scalingo-20")
version="0.13.0"
;;
*)
version="${librabbitmq_version}"
;;
esac

build_librabbitmq "${pkgname}" "${version}" "${source_url}" "${librabbitmq_prefix}"


# amqp
# https://pecl.php.net/package/amqp
# `$version` is loaded from the buildpack.conf file.

# Default `$version` is loaded from the buildpack.conf file.
pkgname="amqp"
version="${amqp_version}"
source_url="https://pecl.php.net/get/amqp-%s.tgz"

case "${STACK}" in
"scalingo-18")
version="1.11.0"
;;
*)
version="${amqp_version}"
;;
esac

build_amqp "${pkgname}" "${version}" "${source_url}" "${librabbitmq_prefix}"

cp "${pkgname}-${version}/modules/amqp.so" "${EXT_DIR}/amqp.so"
echo "extension=amqp.so" > "${PREFIX}/etc/conf.d/amqp.ini"

# Versions breakdown:
#
# | Stack | amqp | librabbitmq |
# | ----------- | ------ | ----------- |
# | scalingo-22 | 2.1.2 | 0.14.0 |
# | scalingo-20 | 2.1.2 | 0.13.0 |
# | scalingo-18 | 1.11.0 | 0.11.0 |
#


# Cleanup

Expand Down

0 comments on commit ed5de22

Please sign in to comment.