Commit 6bb817e2 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

COrrection du dockerfile pour les versions 8.* de PHP

parent 534598af
Loading
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -29,12 +29,12 @@ ENV PHP_VERSION=${PHP_VERSION} \
    APACHE_CONF_DIR=/etc/apache2 \
    PHP_CONF_DIR=/etc/php/${PHP_VERSION}

ENV HTTP_PROXY=${http_proxy} \
    HTTPS_PROXY=${https_proxy} \
    NO_PROXY=${no_proxy} \
    http_proxy=${http_proxy} \
    https_proxy=${https_proxy} \
    no_proxy=${no_proxy}
ENV HTTP_PROXY=${http_proxy:-} \
    HTTPS_PROXY=${https_proxy:-} \
    NO_PROXY=${no_proxy:-} \
    http_proxy=${http_proxy:-} \
    https_proxy=${https_proxy:-} \
    no_proxy=${no_proxy:-}

ENV APACHE_CONF_LOCAL_DIR=configs/apache \
    PHP_CONF_LOCAL_DIR=configs/php/8.x
@@ -113,8 +113,9 @@ RUN apt-get -qq update && \
        php${PHP_VERSION}-opcache \
        php${PHP_VERSION}-readline

# Les versions 3.3.0 et 3.3.1 de xdebug fontt planter l'appli (erreur 503) en PHP 8.0 donc install de la version 3.2.2
RUN pecl install xdebug-3.2.2 && \
# NB : Les versions 3.3.0 et 3.3.1 de xdebug font planter l'appli (erreur 503) en PHP 8.0 : installer la version 3.2.2
#RUN pecl install xdebug-3.2.2 && \
RUN pecl install xdebug && \
    echo 'zend_extension=xdebug.so' > /etc/php/${PHP_VERSION}/cli/conf.d/20-xdebug.ini && \
    echo 'zend_extension=xdebug.so' > /etc/php/${PHP_VERSION}/fpm/conf.d/20-xdebug.ini

+3 −2
Original line number Diff line number Diff line
@@ -99,8 +99,9 @@ sudo -E apt install -y \
    wget \
    zlib1g-dev

# Les versions 3.3.0 et 3.3.1 de xdebug fontt planter l'appli (erreur 503) en PHP 8.0 donc install de la version 3.2.2
pecl install xdebug-3.2.2 && \
# NB : Les versions 3.3.0 et 3.3.1 de xdebug font planter l'appli (erreur 503) en PHP 8.0 : installer la version 3.2.2
#pecl install xdebug-3.2.2 && \
pecl install xdebug && \
    echo 'zend_extension=xdebug.so' > /etc/php/${PHP_VERSION}/cli/conf.d/20-xdebug.ini && \
    echo 'zend_extension=xdebug.so' > /etc/php/${PHP_VERSION}/fpm/conf.d/20-xdebug.ini