mirror of
https://github.com/docker-library/php.git
synced 2025-08-12 02:36:20 +00:00
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 ```
This commit is contained in:
19
docker-php-ext-configure
Executable file
19
docker-php-ext-configure
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
ext="$1"
|
||||
extDir="/usr/src/php/ext/$ext"
|
||||
if [ -z "$ext" -o ! -d "$extDir" ]; then
|
||||
echo >&2 "usage: $0 ext-name [configure flags]"
|
||||
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
|
||||
echo >&2
|
||||
echo >&2 'Possible values for ext-name:'
|
||||
echo >&2 $(find /usr/src/php/ext -mindepth 2 -maxdepth 2 -type f -name 'config.m4' | cut -d/ -f6 | sort)
|
||||
exit 1
|
||||
fi
|
||||
shift
|
||||
|
||||
set -x
|
||||
cd "$extDir"
|
||||
phpize
|
||||
./configure "$@"
|
Reference in New Issue
Block a user