Install PHPREDIS into Laravel-Horizon docker image
This commit is contained in:
parent
e852d203ab
commit
df15420be0
|
@ -51,6 +51,15 @@ RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
|
||||||
apk --update add cassandra-cpp-driver \
|
apk --update add cassandra-cpp-driver \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Install PhpRedis
|
||||||
|
ARG INSTALL_PHPREDIS=false
|
||||||
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
|
# Install Php Redis Extension
|
||||||
|
printf "\n" | pecl install -o -f redis \
|
||||||
|
&& rm -rf /tmp/pear \
|
||||||
|
&& docker-php-ext-enable redis \
|
||||||
|
;fi
|
||||||
|
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
|
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
|
||||||
git clone https://github.com/datastax/php-driver.git \
|
git clone https://github.com/datastax/php-driver.git \
|
||||||
|
|
Loading…
Reference in New Issue