Merging removed MySQL ext into MySQLi setting

This commit is contained in:
Winfried 2017-04-11 13:22:07 +02:00
parent 02e867c17d
commit 80a60d58cf
5 changed files with 9 additions and 22 deletions

View File

@ -64,7 +64,6 @@ services:
- INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF} - INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
- INSTALL_AEROSPIKE_EXTENSION=${PHP_FPM_INSTALL_AEROSPIKE_EXTENSION} - INSTALL_AEROSPIKE_EXTENSION=${PHP_FPM_INSTALL_AEROSPIKE_EXTENSION}
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI} - INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
- INSTALL_MYSQL=${PHP_FPM_INSTALL_MYSQL}
- INSTALL_TOKENIZER=${PHP_FPM_INSTALL_TOKENIZER} - INSTALL_TOKENIZER=${PHP_FPM_INSTALL_TOKENIZER}
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL} - INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
dockerfile: "Dockerfile-${PHP_VERSION}" dockerfile: "Dockerfile-${PHP_VERSION}"

View File

@ -46,7 +46,6 @@ PHP_FPM_INSTALL_OPCACHE=false
PHP_FPM_INSTALL_EXIF=false PHP_FPM_INSTALL_EXIF=false
PHP_FPM_INSTALL_AEROSPIKE_EXTENSION=false PHP_FPM_INSTALL_AEROSPIKE_EXTENSION=false
PHP_FPM_INSTALL_MYSQLI=false PHP_FPM_INSTALL_MYSQLI=false
PHP_FPM_INSTALL_MYSQL=false
PHP_FPM_INSTALL_TOKENIZER=false PHP_FPM_INSTALL_TOKENIZER=false
PHP_FPM_INSTALL_INTL=false PHP_FPM_INSTALL_INTL=false

View File

@ -107,20 +107,6 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
docker-php-ext-enable memcached \ docker-php-ext-enable memcached \
;fi ;fi
#####################################
# PHP MySQL:
#####################################
ARG INSTALL_MYSQL=false
COPY ./mysql.ini /usr/local/etc/php/conf.d/mysql.ini
RUN if [ ${INSTALL_MYSQL} = true ]; then \
# Install the php mysql extension
docker-php-ext-install mysql && \
docker-php-ext-install mysqli && \
docker-php-ext-enable mysql && \
docker-php-ext-enable mysqli \
;fi
##################################### #####################################
# PHP Aerospike: # PHP Aerospike:
##################################### #####################################
@ -162,8 +148,11 @@ COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
##################################### #####################################
ARG INSTALL_MYSQLI=false ARG INSTALL_MYSQLI=false
# MySQL extenstion is available for Php5.6 and lower only
COPY ./mysql.ini /usr/local/etc/php/conf.d/mysql.ini
RUN if [ ${INSTALL_MYSQLI} = true ]; then \ RUN if [ ${INSTALL_MYSQLI} = true ]; then \
docker-php-ext-install mysqli \ docker-php-ext-install mysql && \
docker-php-ext-install mysqli \
;fi ;fi
##################################### #####################################

View File

@ -179,7 +179,7 @@ COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
##################################### #####################################
ARG INSTALL_MYSQLI=false ARG INSTALL_MYSQLI=false
RUN if [ ${INSTALL_MYSQLI} = true ]; then \ RUN if [ ${INSTALL_MYSQLI} = true ]; then \
docker-php-ext-install mysqli \ docker-php-ext-install mysqli \
;fi ;fi
##################################### #####################################

View File

@ -133,7 +133,7 @@ COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
##################################### #####################################
ARG INSTALL_MYSQLI=false ARG INSTALL_MYSQLI=false
RUN if [ ${INSTALL_MYSQLI} = true ]; then \ RUN if [ ${INSTALL_MYSQLI} = true ]; then \
docker-php-ext-install mysqli \ docker-php-ext-install mysqli \
;fi ;fi
##################################### #####################################