Implement Cassandra DB & PHP Extension (#2214)

* Implementing Cassandra DB & PHP Extension
* Update documentation for Cassandra
* Added Cassandra for testing CI
This commit is contained in:
stefan
2019-07-25 10:18:33 +02:00
committed by Shao Yu-Lung (Allen)
parent 768f14b6dd
commit 1602ff2dd0
8 changed files with 154 additions and 1 deletions

View File

@ -45,6 +45,28 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
&& docker-php-ext-install pdo_pgsql \
;fi
# Install Cassandra drivers:
ARG INSTALL_CASSANDRA=false
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
apk --update add cassandra-cpp-driver \
;fi
WORKDIR /usr/src
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
git clone https://github.com/datastax/php-driver.git \
&& cd php-driver/ext \
&& phpize \
&& mkdir -p /usr/src/php-driver/build \
&& cd /usr/src/php-driver/build \
&& ../ext/configure > /dev/null \
&& make clean >/dev/null \
&& make >/dev/null 2>&1 \
&& make install \
&& docker-php-ext-enable cassandra \
;fi
###########################################################################
# PHP Memcached:
###########################################################################