Commit 4f99bc06 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Use ondrej php 7.2, provide a php.ini without xdebug

parent 4339ce36
......@@ -57,6 +57,17 @@ echo "apc.slam_defense=0" >> /etc/php/7.0/mods-available/apcu.ini
# echo extension=sqlsrv.so >> /etc/php/7.0/mods-available/sqlsrv.ini
# phpenmod sqlsrv
# Prepare an additional php.ini file that does *NOT* include xdebug
# can be used with: php -n -c /etc/php/cli-no-xdebug/php.ini
mkdir /etc/php/cli-no-xdebug/
php -i | \
grep "\.ini" | \
grep -o -e '\(/[A-Za-z0-9._-]\+\)\+\.ini' | \
grep -v xdebug | \
xargs awk 'FNR==1{print ""}1' | \
grep -v '^;' | \
grep -v '^$' > /etc/php/cli-no-xdebug/php.ini
# Install common tools
minimal_apt_get_install \
graphicsmagick \
......
......@@ -64,6 +64,17 @@ echo "xdebug.max_nesting_level = 400" >> /etc/php/7.1/mods-available/xdebug.ini
# echo extension=sqlsrv.so >> /etc/php/7.1/mods-available/sqlsrv.ini
# phpenmod sqlsrv
# Prepare an additional php.ini file that does *NOT* include xdebug
# can be used with: php -n -c /etc/php/cli-no-xdebug/php.ini
mkdir /etc/php/cli-no-xdebug/
php -i | \
grep "\.ini" | \
grep -o -e '\(/[A-Za-z0-9._-]\+\)\+\.ini' | \
grep -v xdebug | \
xargs awk 'FNR==1{print ""}1' | \
grep -v '^;' | \
grep -v '^$' > /etc/php/cli-no-xdebug/php.ini
# Install common tools
minimal_apt_get_install \
graphicsmagick \
......
......@@ -5,14 +5,22 @@ set -x
apt-get update
# ondrej with a php 7.2 that is some patch levels younger than ubuntu native 18.04
echo deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main > /etc/apt/sources.list.d/php.list
# postgres with 9.5 next to 10
echo deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main > /etc/apt/sources.list.d/postgres.list
minimal_apt_get_install \
dirmngr \
gpg-agent \
dirmngr \
gpg-agent \
#
# The recv-keys part takes a bit of time, so it's faster to receive multiple keys at once.
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys \
E5267A6C \
#
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
# mssql and tools
......
......@@ -39,10 +39,6 @@ minimal_apt_get_install \
#
# Enable apc on cli for unit tests
echo "apc.enable_cli=1" >> /etc/php/7.2/mods-available/apcu.ini
echo "apc.slam_defense=0" >> /etc/php/7.2/mods-available/apcu.ini
# Disable opcache on php 7.2 since that triggers segfaults 'zend_mm_heap corrupted' with vfsStream 1.6.4 (currently)
# Note: Still true?
echo "opcache.enable_cli=0" >> /etc/php/7.2/cli/conf.d/10-opcache.ini
......@@ -62,6 +58,17 @@ echo "xdebug.max_nesting_level = 400" >> /etc/php/7.2/mods-available/xdebug.ini
#echo extension=sqlsrv.so >> /etc/php/7.2/mods-available/sqlsrv.ini
#phpenmod sqlsrv
# Prepare an additional php.ini file that does *NOT* include xdebug
# can be used with: php -n -c /etc/php/cli-no-xdebug/php.ini
mkdir /etc/php/cli-no-xdebug/
php -i | \
grep "\.ini" | \
grep -o -e '\(/[A-Za-z0-9._-]\+\)\+\.ini' | \
grep -v xdebug | \
xargs awk 'FNR==1{print ""}1' | \
grep -v '^;' | \
grep -v '^$' > /etc/php/cli-no-xdebug/php.ini
# Install common tools
minimal_apt_get_install \
graphicsmagick \
......
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