diff --git a/Dockerfile.sh b/Dockerfile.sh index 0dcc3b47da2138872c3e258946858c3b3d247cd5..704ddd5b47fafdf2e9e99bd77dc4b38badaa53fc 100644 --- a/Dockerfile.sh +++ b/Dockerfile.sh @@ -22,12 +22,14 @@ export PHP_VERSION=8.0 -#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} +#export HTTP_PROXY=http://proxy.domain.fr:3128 \ +# HTTPS_PROXY=${HTTP_PROXY} \ +# NO_PROXY=localhost,domaine.fr \ +# http_proxy=${HTTP_PROXY} \ +# https_proxy=${HTTP_PROXY} \ +# no_proxy=${NO_PROXY} +# +#pear config-set http_proxy ${HTTP_PROXY} apt-get -qq update && \ apt-get install -y \ @@ -95,7 +97,6 @@ apt-get -qq update && \ php${PHP_VERSION}-memcached \ php${PHP_VERSION}-opcache \ php${PHP_VERSION}-soap \ -# php${PHP_VERSION}-xdebug \ --> cf. install à part ci-après php${PHP_VERSION}-xml \ php${PHP_VERSION}-zip \ php${PHP_VERSION}-cli \ @@ -108,14 +109,14 @@ update-alternatives --set php /usr/bin/php${PHP_VERSION} # Installation manuelle de xdebug 3.2.2, car les 3.3.0/1/2 provoquent une "Segmentation fault" au 22/05/2024 (à cause de PHP 8.0 ?) pecl install xdebug-3.2.2 && \ - echo "zend_extension=xdebug" > ${PHP_CONF_DIR}/fpm/conf.d/20-xdebug.ini && \ - echo "zend_extension=xdebug" > ${PHP_CONF_DIR}/cli/conf.d/20-xdebug.ini + sh -c "echo 'zend_extension=xdebug' > ${PHP_CONF_DIR}/fpm/conf.d/20-xdebug.ini" && \ + sh -c "echo 'zend_extension=xdebug' > ${PHP_CONF_DIR}/cli/conf.d/20-xdebug.ini" # Package PHP Oracle OCI8 export OCI8_PACKAGE="oci8-3.0.1" -cp /tmp/docker/resources/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip /tmp/ -cp /tmp/docker/resources/instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip /tmp/ -cp /tmp/docker/resources/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip /tmp/ +cp /tmp/docker/resources/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip /tmp/ && \ +cp /tmp/docker/resources/instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip /tmp/ && \ +cp /tmp/docker/resources/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip /tmp/ && \ unzip -o /tmp/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip -d /usr/local/ && \ unzip -o /tmp/instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip -d /usr/local/ && \ unzip -o /tmp/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip -d /usr/local/ && \ @@ -124,7 +125,8 @@ ln -sf /usr/local/instantclient/sqlplus /usr/bin/sqlplus && \ echo 'instantclient,/usr/local/instantclient' | pecl -d php_suffix=${PHP_VERSION} install ${OCI8_PACKAGE} && \ sh -c "echo 'extension=oci8.so' > ${PHP_CONF_DIR}/fpm/conf.d/30-php-oci8.ini" && \ sh -c "echo 'extension=oci8.so' > ${PHP_CONF_DIR}/cli/conf.d/30-php-oci8.ini" && \ -sh -c "echo '/usr/local/instantclient' > /etc/ld.so.conf.d/oracle-instantclient.conf" && ldconfig +sh -c "echo '/usr/local/instantclient' > /etc/ld.so.conf.d/oracle-instantclient.conf" && \ +ldconfig # Composer #COPY --from=get-composer /usr/bin/composer /usr/local/bin/composer