Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions 5.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ ENV PHP_VERSION 5.4.40
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -33,7 +32,7 @@ RUN buildDeps=" \
libxml2-dev \
" \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& apt-get update && apt-get install -y bzip2 $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \
&& gpg --verify php.tar.bz2.asc \
Expand All @@ -55,9 +54,11 @@ RUN buildDeps=" \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
&& make clean \
&& tar -C /usr/src -cj -f /usr/src/php.tar.bz2 php \
&& rm -rf /usr/src/php \
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& make clean
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps

COPY docker-php-ext-* /usr/local/bin/

Expand Down
9 changes: 5 additions & 4 deletions 5.4/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ ENV PHP_VERSION 5.4.40
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -46,7 +45,7 @@ RUN buildDeps=" \
libxml2-dev \
" \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& apt-get update && apt-get install -y bzip2 $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \
&& gpg --verify php.tar.bz2.asc \
Expand All @@ -68,9 +67,11 @@ RUN buildDeps=" \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
&& make clean \
&& tar -C /usr/src -cj -f /usr/src/php.tar.bz2 php \
&& rm -rf /usr/src/php \
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& make clean
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps

COPY docker-php-ext-* /usr/local/bin/

Expand Down
2 changes: 2 additions & 0 deletions 5.4/apache/docker-php-ext-configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

ext="$1"
extDir="/usr/src/php/ext/$ext"
if [ -z "$ext" -o ! -d "$extDir" ]; then
Expand Down
4 changes: 4 additions & 0 deletions 5.4/apache/docker-php-ext-install
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

cd /usr/src/php/ext

usage() {
Expand Down Expand Up @@ -58,3 +60,5 @@ for ext in "${exts[@]}"; do
make clean
)
done

rm -rf /usr/src/php
2 changes: 2 additions & 0 deletions 5.4/docker-php-ext-configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

ext="$1"
extDir="/usr/src/php/ext/$ext"
if [ -z "$ext" -o ! -d "$extDir" ]; then
Expand Down
4 changes: 4 additions & 0 deletions 5.4/docker-php-ext-install
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

cd /usr/src/php/ext

usage() {
Expand Down Expand Up @@ -58,3 +60,5 @@ for ext in "${exts[@]}"; do
make clean
)
done

rm -rf /usr/src/php
9 changes: 5 additions & 4 deletions 5.4/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ ENV PHP_VERSION 5.4.40
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -34,7 +33,7 @@ RUN buildDeps=" \
libxml2-dev \
" \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& apt-get update && apt-get install -y bzip2 $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \
&& gpg --verify php.tar.bz2.asc \
Expand All @@ -56,9 +55,11 @@ RUN buildDeps=" \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
&& make clean \
&& tar -C /usr/src -cj -f /usr/src/php.tar.bz2 php \
&& rm -rf /usr/src/php \
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& make clean
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps

COPY docker-php-ext-* /usr/local/bin/

Expand Down
2 changes: 2 additions & 0 deletions 5.4/fpm/docker-php-ext-configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

ext="$1"
extDir="/usr/src/php/ext/$ext"
if [ -z "$ext" -o ! -d "$extDir" ]; then
Expand Down
4 changes: 4 additions & 0 deletions 5.4/fpm/docker-php-ext-install
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

cd /usr/src/php/ext

usage() {
Expand Down Expand Up @@ -58,3 +60,5 @@ for ext in "${exts[@]}"; do
make clean
)
done

rm -rf /usr/src/php
9 changes: 5 additions & 4 deletions 5.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ ENV PHP_VERSION 5.5.24
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -33,7 +32,7 @@ RUN buildDeps=" \
libxml2-dev \
" \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& apt-get update && apt-get install -y bzip2 $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \
&& gpg --verify php.tar.bz2.asc \
Expand All @@ -55,9 +54,11 @@ RUN buildDeps=" \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
&& make clean \
&& tar -C /usr/src -cj -f /usr/src/php.tar.bz2 php \
&& rm -rf /usr/src/php \
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& make clean
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps

COPY docker-php-ext-* /usr/local/bin/

Expand Down
9 changes: 5 additions & 4 deletions 5.5/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ ENV PHP_VERSION 5.5.24
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -46,7 +45,7 @@ RUN buildDeps=" \
libxml2-dev \
" \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& apt-get update && apt-get install -y bzip2 $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \
&& gpg --verify php.tar.bz2.asc \
Expand All @@ -68,9 +67,11 @@ RUN buildDeps=" \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
&& make clean \
&& tar -C /usr/src -cj -f /usr/src/php.tar.bz2 php \
&& rm -rf /usr/src/php \
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& make clean
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps

COPY docker-php-ext-* /usr/local/bin/

Expand Down
2 changes: 2 additions & 0 deletions 5.5/apache/docker-php-ext-configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

ext="$1"
extDir="/usr/src/php/ext/$ext"
if [ -z "$ext" -o ! -d "$extDir" ]; then
Expand Down
4 changes: 4 additions & 0 deletions 5.5/apache/docker-php-ext-install
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

cd /usr/src/php/ext

usage() {
Expand Down Expand Up @@ -58,3 +60,5 @@ for ext in "${exts[@]}"; do
make clean
)
done

rm -rf /usr/src/php
2 changes: 2 additions & 0 deletions 5.5/docker-php-ext-configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

ext="$1"
extDir="/usr/src/php/ext/$ext"
if [ -z "$ext" -o ! -d "$extDir" ]; then
Expand Down
4 changes: 4 additions & 0 deletions 5.5/docker-php-ext-install
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

cd /usr/src/php/ext

usage() {
Expand Down Expand Up @@ -58,3 +60,5 @@ for ext in "${exts[@]}"; do
make clean
)
done

rm -rf /usr/src/php
9 changes: 5 additions & 4 deletions 5.5/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ ENV PHP_VERSION 5.5.24
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -34,7 +33,7 @@ RUN buildDeps=" \
libxml2-dev \
" \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& apt-get update && apt-get install -y bzip2 $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \
&& gpg --verify php.tar.bz2.asc \
Expand All @@ -56,9 +55,11 @@ RUN buildDeps=" \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
&& make clean \
&& tar -C /usr/src -cj -f /usr/src/php.tar.bz2 php \
&& rm -rf /usr/src/php \
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& make clean
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps

COPY docker-php-ext-* /usr/local/bin/

Expand Down
2 changes: 2 additions & 0 deletions 5.5/fpm/docker-php-ext-configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

ext="$1"
extDir="/usr/src/php/ext/$ext"
if [ -z "$ext" -o ! -d "$extDir" ]; then
Expand Down
4 changes: 4 additions & 0 deletions 5.5/fpm/docker-php-ext-install
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

[ -d /usr/src/php ] || tar -C /usr/src -xj -f /usr/src/php.tar.bz2

cd /usr/src/php/ext

usage() {
Expand Down Expand Up @@ -58,3 +60,5 @@ for ext in "${exts[@]}"; do
make clean
)
done

rm -rf /usr/src/php
9 changes: 5 additions & 4 deletions 5.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ ENV PHP_VERSION 5.6.8
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -33,7 +32,7 @@ RUN buildDeps=" \
libxml2-dev \
" \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& apt-get update && apt-get install -y bzip2 $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \
&& gpg --verify php.tar.bz2.asc \
Expand All @@ -55,9 +54,11 @@ RUN buildDeps=" \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
&& make clean \
&& tar -C /usr/src -cj -f /usr/src/php.tar.bz2 php \
&& rm -rf /usr/src/php \
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& make clean
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps

COPY docker-php-ext-* /usr/local/bin/

Expand Down
9 changes: 5 additions & 4 deletions 5.6/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ ENV PHP_VERSION 5.6.8
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -46,7 +45,7 @@ RUN buildDeps=" \
libxml2-dev \
" \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& apt-get update && apt-get install -y bzip2 $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \
&& curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \
&& gpg --verify php.tar.bz2.asc \
Expand All @@ -68,9 +67,11 @@ RUN buildDeps=" \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
&& make clean \
&& tar -C /usr/src -cj -f /usr/src/php.tar.bz2 php \
&& rm -rf /usr/src/php \
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& make clean
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps

COPY docker-php-ext-* /usr/local/bin/

Expand Down
Loading