added cachetool to invalidate shared php cache (APCu, OPcache) without reloading PHP-FPM
This commit is contained in:
parent
272222b7f1
commit
f5f1f45858
|
@ -192,6 +192,7 @@ services:
|
||||||
- INSTALL_FAKETIME=${PHP_FPM_INSTALL_FAKETIME}
|
- INSTALL_FAKETIME=${PHP_FPM_INSTALL_FAKETIME}
|
||||||
- INSTALL_IONCUBE=${PHP_FPM_INSTALL_IONCUBE}
|
- INSTALL_IONCUBE=${PHP_FPM_INSTALL_IONCUBE}
|
||||||
- INSTALL_APCU=${PHP_FPM_INSTALL_APCU}
|
- INSTALL_APCU=${PHP_FPM_INSTALL_APCU}
|
||||||
|
- INSTALL_CACHETOOL=${PHP_FPM_INSTALL_CACHETOOL}
|
||||||
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
||||||
- INSTALL_RDKAFKA=${PHP_FPM_INSTALL_RDKAFKA}
|
- INSTALL_RDKAFKA=${PHP_FPM_INSTALL_RDKAFKA}
|
||||||
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
||||||
|
|
|
@ -190,6 +190,7 @@ PHP_FPM_INSTALL_IONCUBE=false
|
||||||
PHP_FPM_INSTALL_RDKAFKA=false
|
PHP_FPM_INSTALL_RDKAFKA=false
|
||||||
PHP_FPM_FAKETIME=-0
|
PHP_FPM_FAKETIME=-0
|
||||||
PHP_FPM_INSTALL_APCU=false
|
PHP_FPM_INSTALL_APCU=false
|
||||||
|
PHP_FPM_INSTALL_CACHETOOL=false
|
||||||
PHP_FPM_INSTALL_YAML=false
|
PHP_FPM_INSTALL_YAML=false
|
||||||
PHP_FPM_INSTALL_ADDITIONAL_LOCALES=false
|
PHP_FPM_INSTALL_ADDITIONAL_LOCALES=false
|
||||||
PHP_FPM_INSTALL_MYSQL_CLIENT=false
|
PHP_FPM_INSTALL_MYSQL_CLIENT=false
|
||||||
|
|
|
@ -767,6 +767,22 @@ RUN if [ ${INSTALL_MAILPARSE} = true ]; then \
|
||||||
&& docker-php-ext-enable mailparse \
|
&& docker-php-ext-enable mailparse \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# CacheTool:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_CACHETOOL=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_CACHETOOL} = true ]; then \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -ge 1 ]; then \
|
||||||
|
curl -sO http://gordalina.github.io/cachetool/downloads/cachetool.phar; \
|
||||||
|
else \
|
||||||
|
curl http://gordalina.github.io/cachetool/downloads/cachetool-3.2.1.phar -o cachetool.phar; \
|
||||||
|
fi && \
|
||||||
|
chmod +x cachetool.phar && \
|
||||||
|
mv cachetool.phar /usr/local/bin/cachetool \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Check PHP version:
|
# Check PHP version:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
Loading…
Reference in New Issue