Skip to content

Commit

Permalink
Merge pull request #19 from devilbox/release-0.27
Browse files Browse the repository at this point in the history
Ensure PHP extension directory exists
  • Loading branch information
cytopia authored Mar 21, 2022
2 parents 334f455 + b1142a3 commit ec9a4bf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
10 changes: 6 additions & 4 deletions Dockerfiles/Dockerfile.jessie
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ENV PHP_BUILD_DEPS \
libbison-dev \
libcurl4-openssl-dev \
libfl-dev \
libmhash-dev \
libmysqlclient-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -28,6 +29,7 @@ ENV PHP_BUILD_DEPS \
libxml2-dev

ENV PHP_RUNTIME_DEPS \
libmhash2 \
libmysqlclient18 \
libpcre3 \
librecode0 \
Expand Down Expand Up @@ -122,6 +124,7 @@ RUN set -eux \
### Copy PHP scripts
###
COPY data/docker-php-source /usr/local/bin/
COPY data/php/php-${PHP_VERSION}.tar.xz /usr/src/php.tar.xz


###
Expand All @@ -137,9 +140,6 @@ RUN set -eux \
apt-get install -y --no-install-recommends --no-install-suggests \
${BUILD_TOOLS_32}; \
fi \
# Fetch PHP
&& curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" -o /usr/src/php.tar.xz \
&& curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" -o /usr/src/php.tar.xz.asc \
# Setup Requirements
&& docker-php-source extract \
&& cd /usr/src/php \
Expand Down Expand Up @@ -203,7 +203,9 @@ RUN set -eux \
${PHP_RUNTIME_DEPS} \
${RUNTIME_TOOLS} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
# Setup extension dir
&& mkdir -p "$(php -r 'echo ini_get("extension_dir");')"

# Fix config.guess for PHP modules (adds 'aarch64' [arm64] architecture)
# The config.guess has been copied from PHP 5.5
Expand Down
10 changes: 6 additions & 4 deletions Dockerfiles/Dockerfile.jessie-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ENV PHP_BUILD_DEPS \
libbison-dev \
libcurl4-openssl-dev \
libfl-dev \
libmhash-dev \
libmysqlclient-dev \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -28,6 +29,7 @@ ENV PHP_BUILD_DEPS \
libxml2-dev

ENV PHP_RUNTIME_DEPS \
libmhash2 \
libmysqlclient18 \
libpcre3 \
librecode0 \
Expand Down Expand Up @@ -150,6 +152,7 @@ RUN set -eux \
### Copy PHP scripts
###
COPY data/docker-php-source /usr/local/bin/
COPY data/php/php-${PHP_VERSION}.tar.xz /usr/src/php.tar.xz


###
Expand All @@ -165,9 +168,6 @@ RUN set -eux \
apt-get install -y --no-install-recommends --no-install-suggests \
${BUILD_TOOLS_32}; \
fi \
# Fetch PHP
&& curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" -o /usr/src/php.tar.xz \
&& curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" -o /usr/src/php.tar.xz.asc \
# Setup Requirements
&& docker-php-source extract \
&& cd /usr/src/php \
Expand Down Expand Up @@ -231,7 +231,9 @@ RUN set -eux \
${PHP_RUNTIME_DEPS} \
${RUNTIME_TOOLS} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
# Setup extension dir
&& mkdir -p "$(php -r 'echo ini_get("extension_dir");')"

# Fix config.guess for PHP modules (adds 'aarch64' [arm64] architecture)
# The config.guess has been copied from PHP 5.5
Expand Down
10 changes: 6 additions & 4 deletions Dockerfiles/Dockerfile.stretch
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ENV PHP_BUILD_DEPS \
libbison-dev \
libcurl4-openssl-dev \
libfl-dev \
libmhash-dev \
libmariadbclient-dev-compat \
libpcre3-dev \
libreadline6-dev \
Expand All @@ -28,6 +29,7 @@ ENV PHP_BUILD_DEPS \
libxml2-dev

ENV PHP_RUNTIME_DEPS \
libmhash2 \
libmariadbclient-dev-compat \
libpcre3 \
librecode0 \
Expand Down Expand Up @@ -124,6 +126,7 @@ RUN set -eux \
### Copy PHP scripts
###
COPY data/docker-php-source /usr/local/bin/
COPY data/php/php-${PHP_VERSION}.tar.xz /usr/src/php.tar.xz


###
Expand All @@ -139,9 +142,6 @@ RUN set -eux \
apt-get install -y --no-install-recommends --no-install-suggests \
${BUILD_TOOLS_32}; \
fi \
# Fetch PHP
&& curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" -o /usr/src/php.tar.xz \
&& curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" -o /usr/src/php.tar.xz.asc \
# Setup Requirements
&& docker-php-source extract \
&& cd /usr/src/php \
Expand Down Expand Up @@ -208,7 +208,9 @@ RUN set -eux \
${PHP_RUNTIME_DEPS} \
${RUNTIME_TOOLS} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
# Setup extension dir
&& mkdir -p "$(php -r 'echo ini_get("extension_dir");')"

# Fix config.guess for PHP modules (adds 'aarch64' [arm64] architecture)
# The config.guess has been copied from PHP 5.5
Expand Down
Binary file added Dockerfiles/data/php/php-5.3.29.tar.xz
Binary file not shown.

0 comments on commit ec9a4bf

Please sign in to comment.