php-fpm install mysql-client (#2005)
This commit is contained in:
parent
b0edaf93a1
commit
2deb9bf1cb
@ -161,6 +161,7 @@ services:
|
|||||||
- INSTALL_APCU=${PHP_FPM_INSTALL_APCU}
|
- INSTALL_APCU=${PHP_FPM_INSTALL_APCU}
|
||||||
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
||||||
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
||||||
|
- INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
|
||||||
- ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
|
- ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
|
||||||
volumes:
|
volumes:
|
||||||
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
|
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
|
||||||
|
@ -172,6 +172,7 @@ PHP_FPM_FAKETIME=-0
|
|||||||
PHP_FPM_INSTALL_APCU=false
|
PHP_FPM_INSTALL_APCU=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_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
|
PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
|
||||||
|
|
||||||
### PHP_WORKER ############################################
|
### PHP_WORKER ############################################
|
||||||
|
@ -606,6 +606,19 @@ RUN if [ ${INSTALL_ADDITIONAL_LOCALES} = true ]; then \
|
|||||||
&& locale-gen \
|
&& locale-gen \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# MySQL Client:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_MYSQL_CLIENT=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \
|
||||||
|
apt-get update -yqq && \
|
||||||
|
apt-get -y install mysql-client \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Check PHP version:
|
# Check PHP version:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user