Attempt simpler php setup, with xdebug

This commit is contained in:
Timothy Warren 2017-01-27 12:09:05 -05:00
parent 3d54a0d62c
commit a80a860f8d

View File

@ -13,27 +13,14 @@ apt-get update -yqq
apt-get install \ apt-get install \
git \ git \
unzip \ unzip \
libfreetype6 \
libjpeg62-turbo \
libmcrypt4 \
libpng12-0 \
libfreetype6-dev \
libjpeg-dev \
libmcrypt-dev \
libpng12-dev \
libxslt1-dev \
libxslt1.1 \
zlib1g-dev \
-yqq -yqq
# Install phpunit, the tool that we will use for testing # Install phpunit, the tool that we will use for testing
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit chmod +x /usr/local/bin/phpunit
# Install gd # Install extensions
docker-php-ext-configure gd --enable-gd-native-ttf --with-jpeg-dir=/usr/lib/x86_64-linux-gnu --with-png-dir=/usr/lib/x86_64-linux-gnu --with-freetype-dir=/usr/lib/x86_64-linux-gnu pecl install xdebug
docker-php-ext-install gd echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
docker-php-ext-install mcrypt
docker-php-ext-install xsl docker-php-ext-install xsl
docker-php-ext-install zip docker-php-ext-install zip
docker-php-ext-install xdebug