Skip to content

install build time deps from docker-php-ext-install for alpine #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 20, 2016
Merged
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
14 changes: 3 additions & 11 deletions 5.5/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
FROM alpine:3.3

# phpize deps
RUN apk add --no-cache --virtual .phpize-deps \
autoconf \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
re2c

# persistent / runtime deps
RUN apk add --no-cache --virtual .persistent-deps \
ca-certificates \
Expand All @@ -37,8 +26,11 @@ ENV PHP_VERSION 5.5.35
ENV PHP_FILENAME php-5.5.35.tar.xz
ENV PHP_SHA256 9bef96634af853960be085690b2f4cea5850b749ea950942769b22b1a9f24873

ENV PHPIZE_DEPS autoconf file g++ gcc libc-dev make pkgconf re2c

RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
curl-dev \
gnupg \
libedit-dev \
Expand Down
9 changes: 9 additions & 0 deletions 5.5/alpine/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
9 changes: 9 additions & 0 deletions 5.5/apache/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
9 changes: 9 additions & 0 deletions 5.5/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
14 changes: 3 additions & 11 deletions 5.5/fpm/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
FROM alpine:3.3

# phpize deps
RUN apk add --no-cache --virtual .phpize-deps \
autoconf \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
re2c

# persistent / runtime deps
RUN apk add --no-cache --virtual .persistent-deps \
ca-certificates \
Expand Down Expand Up @@ -38,8 +27,11 @@ ENV PHP_VERSION 5.5.35
ENV PHP_FILENAME php-5.5.35.tar.xz
ENV PHP_SHA256 9bef96634af853960be085690b2f4cea5850b749ea950942769b22b1a9f24873

ENV PHPIZE_DEPS autoconf file g++ gcc libc-dev make pkgconf re2c

RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
curl-dev \
gnupg \
libedit-dev \
Expand Down
9 changes: 9 additions & 0 deletions 5.5/fpm/alpine/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
9 changes: 9 additions & 0 deletions 5.5/fpm/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
14 changes: 3 additions & 11 deletions 5.5/zts/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
FROM alpine:3.3

# phpize deps
RUN apk add --no-cache --virtual .phpize-deps \
autoconf \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
re2c

# persistent / runtime deps
RUN apk add --no-cache --virtual .persistent-deps \
ca-certificates \
Expand Down Expand Up @@ -38,8 +27,11 @@ ENV PHP_VERSION 5.5.35
ENV PHP_FILENAME php-5.5.35.tar.xz
ENV PHP_SHA256 9bef96634af853960be085690b2f4cea5850b749ea950942769b22b1a9f24873

ENV PHPIZE_DEPS autoconf file g++ gcc libc-dev make pkgconf re2c

RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
curl-dev \
gnupg \
libedit-dev \
Expand Down
9 changes: 9 additions & 0 deletions 5.5/zts/alpine/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
9 changes: 9 additions & 0 deletions 5.5/zts/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
14 changes: 3 additions & 11 deletions 5.6/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
FROM alpine:3.3

# phpize deps
RUN apk add --no-cache --virtual .phpize-deps \
autoconf \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
re2c

# persistent / runtime deps
RUN apk add --no-cache --virtual .persistent-deps \
ca-certificates \
Expand All @@ -37,8 +26,11 @@ ENV PHP_VERSION 5.6.21
ENV PHP_FILENAME php-5.6.21.tar.xz
ENV PHP_SHA256 566ff1a486cb0485ed477a91ea292423f77a58671270ff73b74e67e3ce7084f9

ENV PHPIZE_DEPS autoconf file g++ gcc libc-dev make pkgconf re2c

RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
curl-dev \
gnupg \
libedit-dev \
Expand Down
9 changes: 9 additions & 0 deletions 5.6/alpine/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
9 changes: 9 additions & 0 deletions 5.6/apache/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
9 changes: 9 additions & 0 deletions 5.6/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
14 changes: 3 additions & 11 deletions 5.6/fpm/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
FROM alpine:3.3

# phpize deps
RUN apk add --no-cache --virtual .phpize-deps \
autoconf \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
re2c

# persistent / runtime deps
RUN apk add --no-cache --virtual .persistent-deps \
ca-certificates \
Expand Down Expand Up @@ -38,8 +27,11 @@ ENV PHP_VERSION 5.6.21
ENV PHP_FILENAME php-5.6.21.tar.xz
ENV PHP_SHA256 566ff1a486cb0485ed477a91ea292423f77a58671270ff73b74e67e3ce7084f9

ENV PHPIZE_DEPS autoconf file g++ gcc libc-dev make pkgconf re2c

RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
curl-dev \
gnupg \
libedit-dev \
Expand Down
9 changes: 9 additions & 0 deletions 5.6/fpm/alpine/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
9 changes: 9 additions & 0 deletions 5.6/fpm/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -z "$exts" ]; then
exit 1
fi

: ${PHPIZE_DEPS:="autoconf file g++ gcc libc-dev make pkgconf re2c"}
if [ -e /lib/apk/db/installed ]; then
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
fi

for ext in $exts; do
(
cd "$ext"
Expand All @@ -69,3 +74,7 @@ for ext in $exts; do
make -j"$j" clean
)
done

if [ -e /lib/apk/db/installed ]; then
apk del .phpize-deps
fi
Loading