Commit Graph

491 Commits

Author SHA1 Message Date
Tianon Gravi
9c425b7fb5 Remove 5.5 gpgKeys from update.sh 2016-09-06 12:17:36 -07:00
yosifkit
6e93483f56 Merge pull request #293 from infosiftr/https
Use "https" for communications with "php.net" where possible
2016-08-22 16:27:13 -07:00
Tianon Gravi
2f96a00aaa Use "https" for communications with "php.net" where possible 2016-08-22 15:47:04 -07:00
Tianon Gravi
7e86d3dd84 Update to 5.6.25 2016-08-22 09:58:56 -07:00
Tianon Gravi
8c97d460ce Update to 7.0.10 2016-08-18 16:35:54 -07:00
Tianon Gravi
6b2316cc5a Merge pull request #291 from infosiftr/curse-your-sudden-but-inevitable-betrayal
Fix sed to modify the envvars file
2016-08-17 10:06:37 -07:00
Joe Ferguson
800aea518e Fix sed to modify the envvars file 2016-08-16 15:54:50 -07:00
Tianon Gravi
86a4f8d1cf Simplify silly syntax 2016-08-11 16:18:33 -07:00
Tianon Gravi
3c014371a8 Merge pull request #289 from infosiftr/eol-5.5
Remove 5.5 (EOL as of 21 Jul 2016)
2016-08-11 15:34:29 -07:00
Tianon Gravi
d9fb494f70 Remove 5.5 (EOL as of 21 Jul 2016)
See also https://secure.php.net/eol.php
2016-08-11 15:32:54 -07:00
yosifkit
882b9c25f1 Merge pull request #288 from infosiftr/backwards-compat
Return backwards compatibility to the way we handle /usr/src/php/ext/* (especially for user-supplied subdirectories looking to utilize docker-php-ext-* for non-core modules)
2016-08-10 09:32:01 -07:00
Tianon Gravi
d6b446a77a Apply update.sh 2016-08-09 14:32:13 -07:00
Tianon Gravi
593d50701a Return backwards compatibility to the way we handle /usr/src/php/ext/* (especially for user-supplied subdirectories looking to utilize docker-php-ext-* for non-core modules) 2016-08-09 14:28:11 -07:00
Tianon Gravi
195f9c7267 Apply update.sh 2016-08-09 09:26:58 -07:00
Tianon Gravi
01ab2f7ff3 Minor whitespace and alphabetizing tweaks 2016-08-09 09:26:03 -07:00
Tianon Gravi
3a17ab01a3 Merge pull request #287 from fixd/master
enable ftp by default
2016-08-09 09:21:55 -07:00
Patrick O'Meara
1d332d0e8f enable-ftp
--enable-ftp as some php function need it compiled statically

fixes docker-library/php#236
2016-08-09 17:45:09 +10:00
Patrick O'Meara
6101c944ab Merge pull request #1 from docker-library/master
update from base
2016-08-09 17:39:05 +10:00
yosifkit
893b4f7371 Merge pull request #282 from infosiftr/override-envvars
Convert explicit "export A=B" lines of Apache's envvars file into "${A:=B}" such that we can override them at runtime easily
2016-08-08 12:03:46 -07:00
Tianon Gravi
aea63e358f Apply update.sh 2016-08-08 10:06:26 -07:00
Tianon Gravi
bb2c469018 Convert explicit "export A=B" lines of Apache's envvars file into "${A:=B}" such that we can override them at runtime easily
Before:

```sh
unset HOME

if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
	SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
	SUFFIX=
fi

export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX

export LANG=C

export LANG
```

After:

```sh
unset HOME

if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
	SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
	SUFFIX=
fi

: ${APACHE_RUN_USER:=www-data}
export APACHE_RUN_USER
: ${APACHE_RUN_GROUP:=www-data}
export APACHE_RUN_GROUP
: ${APACHE_PID_FILE:=/var/run/apache2/apache2$SUFFIX.pid}
export APACHE_PID_FILE
: ${APACHE_RUN_DIR:=/var/run/apache2$SUFFIX}
export APACHE_RUN_DIR
: ${APACHE_LOCK_DIR:=/var/lock/apache2$SUFFIX}
export APACHE_LOCK_DIR
: ${APACHE_LOG_DIR:=/var/log/apache2$SUFFIX}
export APACHE_LOG_DIR

: ${LANG:=C}
export LANG

export LANG
```

(minus comments)
2016-08-01 17:07:10 -07:00
Tianon Gravi
2cc40ce1de Apply update.sh 2016-08-01 09:55:58 -07:00
Tianon Gravi
e36077f85c Update generated Dockerfiles to note the source of their generated contents 2016-08-01 09:55:39 -07:00
Tianon Gravi
59200d11b1 Apply update.sh 2016-07-29 09:36:54 -07:00
Tianon Gravi
a7fed4e2f1 Merge pull request #274 from antoligy/allow-override-params
Shuffling around order so as to override default configure options.
2016-07-29 09:36:19 -07:00
Alex Wilson
5842c49fd9
Shuffling around order of optional arguments so as to override default configure options. 2016-07-29 14:52:05 +01:00
Tianon Gravi
cd1769f395 Update to 5.6.24 2016-07-22 12:36:22 -07:00
Tianon Gravi
d8a4ccf4d6 Update to 7.0.9, 5.5.38 2016-07-21 10:49:44 -07:00
Joe Ferguson
f016f5dc42 Run update.sh 2016-07-12 17:15:01 -07:00
yosifkit
1a4763005a Remove extracted php src (#256)
* Remove php src the right way for lightweight containers.

* Adapt docker-php-ext-* scripts to check exts against /available-exts generated file.

* Improve docker-php-source script

 - swap spaces to tabs to match
 - use gnu tar for `--strip-components`
 - cache known extension list in `/usr/src/`
 - remove extra output

* Changes per tianon's comments
2016-07-12 17:12:43 -07:00
yosifkit
8f978dd1f2 Merge pull request #255 from infosiftr/allowoverride
Fix "AllowOverride" and "Indexes" defaults
2016-07-08 14:43:36 -07:00
Tianon Gravi
11c5d11f1d Fix "AllowOverride" and "Indexes" defaults 2016-07-08 13:46:02 -07:00
yosifkit
23ae7acdbe Merge pull request #251 from infosiftr/envvars
Source "envvars" in "apache2-foreground" (mimicking apache2ctl), and by so doing, use the default Debian apache2 configuration unmodified
2016-07-06 17:37:38 -07:00
Tianon Gravi
2dc37fa519 Source "envvars" in "apache2-foreground" (mimicking apache2ctl), and by so doing, use the default Debian apache2 configuration unmodified 2016-07-06 16:07:32 -07:00
Tianon Gravi
e37ca400ba Update to 5.5.37 2016-06-24 09:27:41 -07:00
Tianon Gravi
d0993972f3 Update to 7.0.8, 5.6.23 2016-06-23 11:16:23 -07:00
Tianon Gravi
145f0de1bc Merge pull request #239 from infosiftr/phpize-configure
Adjust "docker-php-ext-configure" to also install deps, but have "docker-php-ext-install" remove them if and only if it was "docker-php-ext-*" which installed them.
2016-06-13 17:22:58 -07:00
Tianon Gravi
420351b5e6 Merge pull request #1 from shouze/phpize-configure
Run update.sh to make the feature available.
2016-06-13 15:26:23 -07:00
Sébastien HOUZÉ
8344a7fdb4
Run update.sh to make the feature available. 2016-06-12 10:58:09 +02:00
Tianon Gravi
6f3edbc07d Convert "generate-stackbrew-library.sh" to output the new 2822-based format 2016-06-09 11:56:08 -07:00
Tianon Gravi
bad9064ea0 Simplify silly syntax 2016-06-09 10:34:11 -07:00
Tianon Gravi
3099068733 Update to alpine:3.4 2016-06-07 08:54:07 -07:00
Tianon Gravi
1ad06eced2 Adjust "docker-php-ext-configure" to also install deps, but have "docker-php-ext-install" remove them if and only if it was "docker-php-ext-*" which installed them. 2016-06-06 11:01:36 -07:00
Tianon Gravi
81ceba1318 Update to 7.0.7, 5.6.22, 5.5.36 2016-05-26 15:31:29 -07:00
Tianon Gravi
47abb34bbf Apply update.sh 2016-05-23 14:29:30 -07:00
Tianon Gravi
d1c1222433 Adjust PHPIZE_DEPS logic slightly for better cross-environment consistency (and to allow for folks to set "PHPIZE_DEPS=" in order to disable the additional behavior)
Full diff from before this change, to show the impact of this commit slightly more clearly:

```diff
diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template
index c3c3d36..60491a0 100644
--- a/Dockerfile-alpine.template
+++ b/Dockerfile-alpine.template
@@ -1,7 +1,7 @@
 FROM alpine:3.3

-# phpize deps
-RUN apk add --no-cache --virtual .phpize-deps \
+# persistent / runtime deps
+ENV PHPIZE_DEPS \
 		autoconf \
 		file \
 		g++ \
@@ -10,8 +10,6 @@ RUN apk add --no-cache --virtual .phpize-deps \
 		make \
 		pkgconf \
 		re2c
-
-# persistent / runtime deps
 RUN apk add --no-cache --virtual .persistent-deps \
 		ca-certificates \
 		curl
@@ -39,6 +37,7 @@ ENV PHP_SHA256 %%PHP_SHA256%%

 RUN set -xe \
 	&& apk add --no-cache --virtual .build-deps \
+		$PHPIZE_DEPS \
 		curl-dev \
 		gnupg \
 		libedit-dev \
diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template
index a95b582..397eee5 100644
--- a/Dockerfile-debian.template
+++ b/Dockerfile-debian.template
@@ -1,7 +1,7 @@
 FROM debian:jessie

-# phpize deps
-RUN apt-get update && apt-get install -y \
+# persistent / runtime deps
+ENV PHPIZE_DEPS \
 		autoconf \
 		file \
 		g++ \
@@ -9,11 +9,9 @@ RUN apt-get update && apt-get install -y \
 		libc-dev \
 		make \
 		pkg-config \
-		re2c \
-	--no-install-recommends && rm -r /var/lib/apt/lists/*
-
-# persistent / runtime deps
+		re2c
 RUN apt-get update && apt-get install -y \
+		$PHPIZE_DEPS \
 		ca-certificates \
 		curl \
 		libedit2 \
diff --git a/docker-php-ext-install b/docker-php-ext-install
index 67180a8..eb2380a 100755
--- a/docker-php-ext-install
+++ b/docker-php-ext-install
@@ -55,6 +55,10 @@ if [ -z "$exts" ]; then
 	exit 1
 fi

+if [ -e /lib/apk/db/installed ] && [ -n "$PHPIZE_DEPS" ]; then
+	apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS
+fi
+
 for ext in $exts; do
 	(
 		cd "$ext"
@@ -69,3 +73,7 @@ for ext in $exts; do
 		make -j"$j" clean
 	)
 done
+
+if [ -e /lib/apk/db/installed ] && [ -n "$PHPIZE_DEPS" ]; then
+	apk del .phpize-deps
+fi
```
2016-05-23 14:28:40 -07:00
yosifkit
60a7ce3c28 Merge pull request #206 from ncopa/php-ext-install-alpine
install build time deps from docker-php-ext-install for alpine
2016-05-20 11:04:36 -07:00
Natanael Copa
1ca3e1d22a Apply update.sh 2016-05-20 16:17:45 +02:00
Natanael Copa
e3db777ec6 Install build time deps from docker-php-ext-install for alpine
We don't need the build dependencies during runtime, so we temporarily
install them when building extension. This reduces image size with 50%.

We also provide a PHPIZE_DEPS environment variable with the needed deps.
2016-05-20 16:17:09 +02:00
Tianon Gravi
49ceb8ddbb Apply update.sh 2016-05-17 16:42:35 -07:00