Browse Source

Added PHPUnit and redis extension changed to 3.0.0 release in PHP 7 image.

master
Rafael Mello 8 years ago
parent
commit
806c7a4f1b
3 changed files with 12 additions and 5 deletions
  1. +5
    -1
      5.6/Dockerfile
  2. +6
    -4
      7.0/Dockerfile
  3. +1
    -0
      README.md

+ 5
- 1
5.6/Dockerfile View File

@ -51,7 +51,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- \
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.10 \
&& pecl install apcu-4.0.10 \
&& pecl install redis \
&& pecl install redis-2.2.8 \
&& pecl install memcached \
&& docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/opt/oracle/instantclient_12_1,12.1 \
&& docker-php-ext-configure pdo_dblib --with-libdir=/lib/x86_64-linux-gnu \
@ -78,6 +78,10 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di
redis \
opcache
# Install PHPUnit 5.5
RUN wget https://phar.phpunit.de/phpunit.phar -O /usr/local/bin/phpunit \
&& chmod +x /usr/local/bin/phpunit
# Clean repository
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*

+ 6
- 4
7.0/Dockerfile View File

@ -50,9 +50,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- \
# Install PHP extensions
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8 \
&& git clone https://github.com/phpredis/phpredis /usr/src/php/ext/redis \
&& cd /usr/src/php/ext/redis && git checkout -b php7 origin/php7 \
&& docker-php-ext-configure redis \
&& pecl install redis \
&& git clone https://github.com/php-memcached-dev/php-memcached /usr/src/php/ext/memcached \
&& cd /usr/src/php/ext/memcached && git checkout -b php7 origin/php7 \
&& docker-php-ext-configure memcached \
@ -74,10 +72,10 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di
sockets \
zip \
memcached \
redis \
pcntl \
&& docker-php-ext-enable \
oci8 \
redis \
opcache
# Install APCu and APC backward compatibility
@ -86,6 +84,10 @@ RUN pecl install apcu \
&& docker-php-ext-enable apcu --ini-name 10-docker-php-ext-apcu.ini \
&& docker-php-ext-enable apc --ini-name 20-docker-php-ext-apc.ini
# Install PHPUnit 5.5
RUN wget https://phar.phpunit.de/phpunit.phar -O /usr/local/bin/phpunit \
&& chmod +x /usr/local/bin/phpunit
# Clean repository
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*

+ 1
- 0
README.md View File

@ -37,6 +37,7 @@ Resources
---------
- composer
- phpunit
- wget
- vim
- git


Loading…
Cancel
Save