Fixed SOAP for both php-fpm and CLI

This commit is contained in:
Austin Benesh 2017-02-07 15:21:30 -07:00
parent f7d915256b
commit cf34c4ed32
4 changed files with 20 additions and 2 deletions

View File

@ -17,6 +17,7 @@ services:
context: ./workspace
args:
- INSTALL_XDEBUG=false
- INSTALL_SOAP=false
- INSTALL_MONGO=false
- INSTALL_NODE=false
- INSTALL_YARN=false

View File

@ -44,7 +44,7 @@ ARG INSTALL_SOAP=false
RUN if [ ${INSTALL_SOAP} = true ]; then \
# Install the soap extension
apt-get -y update && \
apt-get -y install libxml2-dev && \
apt-get -y install libxml2-dev php-soap && \
docker-php-ext-install soap \
;fi

View File

@ -45,7 +45,7 @@ ARG INSTALL_SOAP=false
RUN if [ ${INSTALL_SOAP} = true ]; then \
# Install the soap extension
apt-get -y update && \
apt-get -y install libxml2-dev && \
apt-get -y install libxml2-dev php-soap && \
docker-php-ext-install soap \
;fi

View File

@ -47,6 +47,23 @@ ARG PGID=1000
RUN groupadd -g $PGID laradock && \
useradd -u $PUID -g laradock -m laradock
#####################################
# SOAP:
#####################################
USER root
ARG INSTALL_SOAP=false
ENV INSTALL_SOAP ${INSTALL_SOAP}
RUN if [ ${INSTALL_SOAP} = true ]; then \
# Install the PHP SOAP extension
apt-get -y update && \
add-apt-repository -y ppa:ondrej/php && \
apt-get -y install libxml2-dev php7.0-soap && \
echo "extension=soap.so" >> /etc/php/7.0/cli/conf.d/40-soap.ini \
;fi
#####################################
# Set Timezone
#####################################