Fixed: PHP-Worker has missing PGSQL drivers.
This commit is contained in:
parent
c2c30bfd0f
commit
894b0197e0
@ -112,6 +112,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./php-worker
|
context: ./php-worker
|
||||||
dockerfile: "Dockerfile-${PHP_VERSION}"
|
dockerfile: "Dockerfile-${PHP_VERSION}"
|
||||||
|
args:
|
||||||
|
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -88,6 +88,10 @@ PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=false
|
|||||||
PHP_FPM_INSTALL_IMAGEMAGICK=false
|
PHP_FPM_INSTALL_IMAGEMAGICK=false
|
||||||
PHP_FPM_INSTALL_PG_CLIENT=false
|
PHP_FPM_INSTALL_PG_CLIENT=false
|
||||||
|
|
||||||
|
### PHP_WORKER #########################################################################################################
|
||||||
|
|
||||||
|
PHP_WORKER_INSTALL_PGSQL=false
|
||||||
|
|
||||||
### NGINX ##############################################################################################################
|
### NGINX ##############################################################################################################
|
||||||
|
|
||||||
NGINX_HOST_HTTP_PORT=80
|
NGINX_HOST_HTTP_PORT=80
|
||||||
|
@ -24,6 +24,13 @@ RUN apk --update add wget \
|
|||||||
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql mcrypt tokenizer xml
|
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql mcrypt tokenizer xml
|
||||||
RUN pecl channel-update pecl.php.net && pecl install memcached && docker-php-ext-enable memcached
|
RUN pecl channel-update pecl.php.net && pecl install memcached && docker-php-ext-enable memcached
|
||||||
|
|
||||||
|
# Install PostgreSQL drivers:
|
||||||
|
ARG INSTALL_PGSQL=false
|
||||||
|
RUN if [ ${INSTALL_PGSQL} = true ]; then \
|
||||||
|
apk --update add postgresql-dev \
|
||||||
|
&& docker-php-ext-install pdo_pgsql \
|
||||||
|
;fi
|
||||||
|
|
||||||
RUN rm /var/cache/apk/* \
|
RUN rm /var/cache/apk/* \
|
||||||
&& mkdir -p /var/www
|
&& mkdir -p /var/www
|
||||||
|
|
||||||
|
@ -24,6 +24,13 @@ RUN apk --update add wget \
|
|||||||
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql mcrypt tokenizer xml
|
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql mcrypt tokenizer xml
|
||||||
RUN pecl channel-update pecl.php.net && pecl install memcached && docker-php-ext-enable memcached
|
RUN pecl channel-update pecl.php.net && pecl install memcached && docker-php-ext-enable memcached
|
||||||
|
|
||||||
|
# Install PostgreSQL drivers:
|
||||||
|
ARG INSTALL_PGSQL=false
|
||||||
|
RUN if [ ${INSTALL_PGSQL} = true ]; then \
|
||||||
|
apk --update add postgresql-dev \
|
||||||
|
&& docker-php-ext-install pdo_pgsql \
|
||||||
|
;fi
|
||||||
|
|
||||||
RUN rm /var/cache/apk/* \
|
RUN rm /var/cache/apk/* \
|
||||||
&& mkdir -p /var/www
|
&& mkdir -p /var/www
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user