Skip to content

Commit 829e01c

Browse files
authored
Merge pull request #51 from slashrsm/php_7_1
Add support for PHP 7.1.
2 parents 58b930d + e123741 commit 829e01c

11 files changed

Lines changed: 95 additions & 0 deletions

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ env:
1717
- DOCKERFILE="7.0"
1818
- DOCKERFILE="7.0/apache"
1919
- DOCKERFILE="7.0/fpm"
20+
- DOCKERFILE="7.1"
21+
- DOCKERFILE="7.1/apache"
22+
- DOCKERFILE="7.1/fpm"
2023

2124
before_script:
2225
- docker version

7.1/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM php:7.1-cli
2+
MAINTAINER drupal-docker
3+
4+
VOLUME /var/www/html
5+
WORKDIR /var/www/html
6+
7+
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev sudo git \
8+
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
9+
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip \
10+
&& docker-php-ext-install opcache \
11+
&& pecl install redis-3.0.0 \
12+
&& docker-php-ext-enable redis \
13+
&& curl -sS https://getcomposer.org/installer | php \
14+
&& mv composer.phar /usr/local/bin/composer \
15+
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
16+
&& rm -rf /var/lib/apt/lists/*
17+
18+
COPY drupal-*.ini /usr/local/etc/php/conf.d/

7.1/apache/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM php:7.1-apache
2+
MAINTAINER drupal-docker
3+
4+
VOLUME /var/www/html
5+
6+
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
7+
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
8+
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip \
9+
&& docker-php-ext-install opcache \
10+
&& pecl install redis-3.0.0 \
11+
&& docker-php-ext-enable redis \
12+
&& a2enmod rewrite \
13+
&& rm -rf /var/lib/apt/lists/*
14+
15+
COPY drupal-*.ini /usr/local/etc/php/conf.d/

7.1/apache/drupal-00.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
session.cache_limiter = nocache
2+
session.auto_start = 0
3+
expose_php = Off
4+
allow_url_fopen = Off
5+
register_globals = Off
6+
display_errors = Off
7+
memory_limit = 512M
8+
date.timezone = "UTC"

7.1/apache/drupal-opcache.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
opcache.memory_consumption=128
2+
opcache.interned_strings_buffer=8
3+
opcache.max_accelerated_files=4000
4+
opcache.revalidate_freq=60
5+
opcache.fast_shutdown=1
6+
opcache.enable_cli=1

7.1/drupal-00.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
session.cache_limiter = nocache
2+
session.auto_start = 0
3+
expose_php = Off
4+
allow_url_fopen = On
5+
register_globals = Off
6+
display_errors = On
7+
memory_limit = -1
8+
date.timezone = "UTC"

7.1/drupal-opcache.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
opcache.memory_consumption=128
2+
opcache.interned_strings_buffer=8
3+
opcache.max_accelerated_files=4000
4+
opcache.revalidate_freq=60
5+
opcache.fast_shutdown=1
6+
opcache.enable_cli=1

7.1/fpm/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM php:7.1-fpm
2+
MAINTAINER drupal-docker
3+
4+
VOLUME /var/www/html
5+
6+
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
7+
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
8+
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip \
9+
&& docker-php-ext-install opcache \
10+
&& pecl install redis-3.0.0 \
11+
&& docker-php-ext-enable redis \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
COPY drupal-*.ini /usr/local/etc/php/conf.d/

7.1/fpm/drupal-00.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
session.cache_limiter = nocache
2+
session.auto_start = 0
3+
expose_php = Off
4+
allow_url_fopen = Off
5+
register_globals = Off
6+
display_errors = Off
7+
memory_limit = 512M
8+
date.timezone = "UTC"

7.1/fpm/drupal-opcache.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
opcache.memory_consumption=128
2+
opcache.interned_strings_buffer=8
3+
opcache.max_accelerated_files=4000
4+
opcache.revalidate_freq=60
5+
opcache.fast_shutdown=1
6+
opcache.enable_cli=1

0 commit comments

Comments
 (0)