Commit Graph

7 Commits

Author SHA1 Message Date
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
3bf5b82235 Convert all Dockerfiles to be template-based, and resync a few minor bits of Alpine and Debian (libedit in both, no recode in either, POSIX shell versions of docker-php-ext-* scripts for all) 2016-03-18 10:57:31 -07:00
Tianon Gravi
22a9b8efa5 Allow a "-j" or "--jobs" argument to "docker-php-ext-install" to speed up extension building 2015-12-09 11:11:05 -08:00
Tianon Gravi
fef9f6ec8a Add new "docker-php-ext-enable" script for more intelligent module enabling
This also updates `docker-php-ext-install` to invoke this script properly after successful extension compilation.

If modules are determined to already be enabled, it'll skip them appropriately.

This removes simple warnings like `PHP Warning:  Module 'curl' already loaded in Unknown on line 0`, and enables things like `pecl install mongo && docker-php-ext-enable mongo`.
2015-08-04 16:04:25 -07:00
Tianon Gravi
cb9322a837 Whoops, use $ini consistently O:) 2015-05-28 12:43:03 -07:00
Jared Markell
58c3fd175c Load opcache as a zend_extension. 2014-11-20 15:08:14 -08:00
Tianon Gravi
2c5880107a Add new docker-php-ext-* scripts for magic
For example, the following makes WordPress work:

```Dockerfile
RUN apt-get update && apt-get install -y libpng12-dev && rm -rf /var/lib/apt/lists/* \
	&& docker-php-ext-install gd \
	&& apt-get purge --auto-remove -y libpng12-dev

RUN docker-php-ext-install mysqli
```
2014-11-11 13:17:28 -07:00