Skip to content

Commit 0ac8440

Browse files
committed
Add alpine versions of images.
1 parent 1307d09 commit 0ac8440

19 files changed

Lines changed: 203 additions & 0 deletions

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ env:
2020
- DOCKERFILE="7.1"
2121
- DOCKERFILE="7.1/apache"
2222
- DOCKERFILE="7.1/fpm"
23+
- DOCKERFILE="5.6-alpine"
24+
- DOCKERFILE="5.6-alpine/fpm"
25+
- DOCKERFILE="7.0-alpine"
26+
- DOCKERFILE="7.0-alpine/fpm"
27+
- DOCKERFILE="7.1-alpine"
28+
- DOCKERFILE="7.1-alpine/fpm"
2329

2430
before_script:
2531
- docker version

5.6-alpine/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM php:5.6-alpine
2+
MAINTAINER drupal-docker
3+
4+
VOLUME /var/www/html
5+
WORKDIR /var/www/html
6+
7+
RUN apk add --no-cache --virtual .dd-build-deps libpng-dev libjpeg-turbo-dev postgresql-dev $PHPIZE_DEPS \
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-2.2.8 \
12+
&& docker-php-ext-enable redis \
13+
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
14+
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
15+
&& php composer-setup.php \
16+
&& php -r "unlink('composer-setup.php');" \
17+
&& mv composer.phar /usr/local/bin/composer \
18+
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
19+
&& apk add --no-cache sudo git libpng libjpeg libpq \
20+
&& apk del .dd-build-deps
21+
22+
COPY drupal-*.ini /usr/local/etc/php/conf.d/

5.6-alpine/drupal-00.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
always_populate_raw_post_data = -1
9+
date.timezone = "UTC"

5.6-alpine/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

5.6-alpine/fpm/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM php:5.6-fpm-alpine
2+
MAINTAINER drupal-docker
3+
4+
VOLUME /var/www/html
5+
6+
RUN apk add --no-cache --virtual .dd-build-deps libpng-dev libjpeg-turbo-dev postgresql-dev $PHPIZE_DEPS \
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-2.2.8 \
11+
&& docker-php-ext-enable redis \
12+
&& apk add --no-cache libpng libjpeg libpq \
13+
&& apk del .dd-build-deps
14+
15+
COPY drupal-*.ini /usr/local/etc/php/conf.d/

5.6-alpine/fpm/drupal-00.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
always_populate_raw_post_data = -1
9+
date.timezone = "UTC"

5.6-alpine/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

7.0-alpine/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM php:7.0-alpine
2+
MAINTAINER drupal-docker
3+
4+
VOLUME /var/www/html
5+
WORKDIR /var/www/html
6+
7+
RUN apk add --no-cache --virtual .dd-build-deps libpng-dev libjpeg-turbo-dev postgresql-dev $PHPIZE_DEPS \
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+
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
14+
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
15+
&& php composer-setup.php \
16+
&& php -r "unlink('composer-setup.php');" \
17+
&& mv composer.phar /usr/local/bin/composer \
18+
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
19+
&& apk add --no-cache sudo git libpng libjpeg libpq \
20+
&& apk del .dd-build-deps
21+
22+
COPY drupal-*.ini /usr/local/etc/php/conf.d/

7.0-alpine/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.0-alpine/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)