mirror of
https://github.com/docker-library/php.git
synced 2025-08-15 13:19:00 +00:00
Add explicit "--build" to our "./configure" invocations
This commit is contained in:
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -88,6 +89,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -99,7 +101,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -117,6 +121,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,10 +90,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -100,7 +103,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,8 +123,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -147,6 +148,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -158,7 +160,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -176,6 +180,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,6 +90,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -100,7 +102,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,6 +122,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -101,7 +104,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -119,8 +124,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,6 +90,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -100,7 +102,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,6 +122,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -101,7 +104,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -119,8 +124,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -88,6 +89,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -99,7 +101,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -117,6 +121,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,10 +90,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -100,7 +103,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,8 +123,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -147,6 +148,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -158,7 +160,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -176,6 +180,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,6 +90,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -100,7 +102,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,6 +122,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -101,7 +104,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -119,8 +124,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,6 +90,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -100,7 +102,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,6 +122,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -101,7 +104,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -119,8 +124,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -88,6 +89,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -99,7 +101,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -117,6 +121,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,10 +90,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -100,7 +103,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,8 +123,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -147,6 +148,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -158,7 +160,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -176,6 +180,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,6 +90,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -100,7 +102,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,6 +122,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -101,7 +104,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -119,8 +124,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -9,6 +9,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -89,6 +90,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -100,7 +102,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -118,6 +122,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -9,6 +9,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -101,7 +104,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -119,8 +124,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
@ -3,6 +3,7 @@ FROM alpine:3.4
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev dpkg \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -83,10 +84,12 @@ COPY docker-php-source /usr/local/bin/
|
|||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
|
pcre-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
\
|
\
|
||||||
&& export CFLAGS="$PHP_CFLAGS" \
|
&& export CFLAGS="$PHP_CFLAGS" \
|
||||||
@ -94,7 +97,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -112,8 +117,12 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
|
||||||
&& make clean \
|
&& make clean \
|
||||||
|
@ -3,6 +3,7 @@ FROM debian:jessie
|
|||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
ENV PHPIZE_DEPS \
|
ENV PHPIZE_DEPS \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
dpkg-dev \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
@ -82,6 +83,7 @@ RUN set -xe \
|
|||||||
$PHP_EXTRA_BUILD_DEPS \
|
$PHP_EXTRA_BUILD_DEPS \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
|
libpcre3-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
@ -93,7 +95,9 @@ RUN set -xe \
|
|||||||
LDFLAGS="$PHP_LDFLAGS" \
|
LDFLAGS="$PHP_LDFLAGS" \
|
||||||
&& docker-php-source extract \
|
&& docker-php-source extract \
|
||||||
&& cd /usr/src/php \
|
&& cd /usr/src/php \
|
||||||
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
|
--build="$gnuArch" \
|
||||||
--with-config-file-path="$PHP_INI_DIR" \
|
--with-config-file-path="$PHP_INI_DIR" \
|
||||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||||
\
|
\
|
||||||
@ -111,6 +115,11 @@ RUN set -xe \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
\
|
\
|
||||||
|
# bundled pcre is too old for s390x (which isn't exactly a good sign)
|
||||||
|
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
|
||||||
|
--with-pcre-regex=/usr \
|
||||||
|
--with-libdir="lib/$gnuArch" \
|
||||||
|
\
|
||||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||||
&& make -j "$(nproc)" \
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v dpkg-architecture > /dev/null; then
|
||||||
|
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
|
||||||
|
set -- --build="$gnuArch" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "$ext"
|
cd "$ext"
|
||||||
phpize
|
phpize
|
||||||
|
Reference in New Issue
Block a user