Commit de79936a authored by Christian Kuhn's avatar Christian Kuhn
Browse files

Merge pull request #29 in T3COM/bamboo-remote-agent from...

Merge pull request #29 in T3COM/bamboo-remote-agent from INFRA-250-bamboo-have-php-soap-installed to develop

* commit '5546f6e5':
  [TASK] php-soap on 7.0 and 7.1 and a couple of cli php.ini settings
parents 146d7b4a 5546f6e5
......@@ -26,6 +26,7 @@ minimal_apt_get_install \
php7.0-pspell \
php7.0-readline \
php7.0-recode \
php7.0-soap \
php7.0-sqlite3 \
php7.0-xml \
php7.0-xmlrpc \
......@@ -37,9 +38,16 @@ minimal_apt_get_install \
php-pear \
#
## Enable phar writing
# Enable phar writing for packaging tasks
sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ /etc/php/7.0/cli/php.ini
# Restrict cli based php.ini settings for php -S web server to have sane values in acceptance tests
sed -i s/'memory_limit = -1'/'memory_limit = 2G'/ /etc/php/7.0/cli/php.ini
sed -i s/'max_execution_time = 30'/'max_execution_time = 240'/ /etc/php/7.0/cli/php.ini
sed -i s/'; max_input_vars = 1000'/'max_input_vars = 1500'/ /etc/php/7.0/cli/php.ini
echo "xdebug.max_nesting_level = 400" >> /etc/php/7.0/mods-available/xdebug.ini
# Enable apc on cli for unit tests
echo "apc.enable_cli=1" >> /etc/php/7.0/mods-available/apcu.ini
echo "apc.slam_defense=0" >> /etc/php/7.0/mods-available/apcu.ini
......@@ -49,7 +57,7 @@ pecl install sqlsrv
echo extension=sqlsrv.so >> /etc/php/7.0/mods-available/sqlsrv.ini
phpenmod sqlsrv
## Install common tools
# Install common tools
minimal_apt_get_install \
graphicsmagick \
zip \
......
......@@ -27,6 +27,7 @@ minimal_apt_get_install \
php7.1-pspell \
php7.1-readline \
php7.1-recode \
php7.1-soap \
php7.1-sqlite3 \
php7.1-xml \
php7.1-xmlrpc \
......@@ -44,15 +45,20 @@ minimal_apt_get_install \
echo "apc.enable_cli=1" >> /etc/php/7.1/mods-available/apcu.ini
echo "apc.slam_defense=0" >> /etc/php/7.1/mods-available/apcu.ini
# Disable opcache on php 7.1 since that triggers segfaults 'zend_mm_heap corrupted' with vfsStream 1.6.4 (currently)
echo "opcache.enable_cli=0" >> /etc/php/7.1/cli/conf.d/10-opcache.ini
## Enable phar writing
# Enable phar writing
sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ /etc/php/7.1/cli/php.ini
## Install common tools
# Restrict cli based php.ini settings for php -S web server to have sane values in acceptance tests
sed -i s/'memory_limit = -1'/'memory_limit = 2G'/ /etc/php/7.1/cli/php.ini
sed -i s/'max_execution_time = 30'/'max_execution_time = 240'/ /etc/php/7.1/cli/php.ini
sed -i s/'; max_input_vars = 1000'/'max_input_vars = 1500'/ /etc/php/7.1/cli/php.ini
echo "xdebug.max_nesting_level = 400" >> /etc/php/7.1/mods-available/xdebug.ini
# Install common tools
minimal_apt_get_install \
graphicsmagick \
zip \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment