mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 00:22:40 +00:00
Add support for zookeeper
This commit is contained in:
parent
bf7d0bd764
commit
f3b4e640f8
2 changed files with 32 additions and 0 deletions
|
@ -651,6 +651,15 @@ buildRequiredPackageLists() {
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
zookeeper@alpine)
|
||||
if ! test -f /usr/local/include/zookeeper/zookeeper.h; then
|
||||
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile automake libtool libressl-dev apache-ant openjdk8"
|
||||
fi
|
||||
;;
|
||||
zookeeper@debian)
|
||||
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzookeeper-mt2"
|
||||
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libzookeeper-mt-dev"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
@ -1303,6 +1312,28 @@ installPECLModule() {
|
|||
installPECLModule_actual="$1-2.0.4"
|
||||
fi
|
||||
;;
|
||||
zookeeper)
|
||||
case "$DISTRO" in
|
||||
alpine)
|
||||
if ! test -f /usr/local/include/zookeeper/zookeeper.h; then
|
||||
installPECLModule_src="$(getPackageSource https://downloads.apache.org/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz)"
|
||||
cd -- "$installPECLModule_src"
|
||||
ant ivy-retrieve compile_jute
|
||||
cd - >/dev/null
|
||||
cd -- "$installPECLModule_src/zookeeper-client/zookeeper-client-c"
|
||||
./configure --without-cppunit
|
||||
make -j$(nproc)
|
||||
make install
|
||||
cd - >/dev/null
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
if test $PHP_MAJMIN_VERSION -lt 700; then
|
||||
installPECLModule_actual="$1-0.5.0"
|
||||
elif test $PHP_MAJMIN_VERSION -gt 702; then
|
||||
installPECLModule_actual="$1-0.7.2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
if test $installPECLModule_manuallyInstalled -eq 0; then
|
||||
if test "$1" != "$installPECLModule_actual"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue