mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2026-01-10 18:04:43 +00:00
Add Module: IonCube
This commit is contained in:
@@ -113,6 +113,9 @@ RUN set -x \
|
||||
{% endif %}
|
||||
&& docker-php-ext-enable {{ ext }} \
|
||||
&& cd / && rm -rf /tmp/{{ ext }} \
|
||||
{# ---- 4.) CUSTOM ---- #}
|
||||
{% elif extensions_available[ext][php_version]['type'] == 'custom' %}
|
||||
&& {{ extensions_available[ext][php_version]['command'] }} \
|
||||
{% endif %}
|
||||
{# ---------- Installation (generic) ---------- #}
|
||||
{% elif 'all' in extensions_available[ext] and 'type' in extensions_available[ext]['all'] %}
|
||||
@@ -147,6 +150,9 @@ RUN set -x \
|
||||
{% endif %}
|
||||
&& docker-php-ext-enable {{ ext }} \
|
||||
&& cd / && rm -rf /tmp/{{ ext }} \
|
||||
{# ---- 4.) CUSTOM ---- #}
|
||||
{% elif extensions_available[ext]['all']['type'] == 'custom' %}
|
||||
&& {{ extensions_available[ext]['all']['command'] }} \
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
@@ -181,6 +187,9 @@ RUN set -x \
|
||||
{% if ext == 'opcache' %}
|
||||
&& php -m | grep -oiE '^Zend Opcache$' \
|
||||
&& php-fpm -m | grep -oiE '^Zend Opcache$' \
|
||||
{% elif ext == 'ioncube' %}
|
||||
&& php -m | grep -oiE '^ionCube Loader$' \
|
||||
&& php-fpm -m | grep -oiE '^ionCube Loader$' \
|
||||
{% else %}
|
||||
&& php -m | grep -oiE '^{{ ext }}$' \
|
||||
&& php-fpm -m | grep -oiE '^{{ ext }}$' \
|
||||
|
||||
@@ -398,6 +398,8 @@ software_available:
|
||||
### Extensions to actually enable
|
||||
###
|
||||
extensions_enabled:
|
||||
# ioncube must be loaded first
|
||||
- ioncube
|
||||
- amqp
|
||||
- apcu
|
||||
- bcmath
|
||||
@@ -505,6 +507,8 @@ extensions_enabled:
|
||||
# git_ref: [optional] Tag, branch, commit to checkout
|
||||
# configure: [optional] Add './configure' arguments
|
||||
# command: [optional] Overwrite default command (phpize && ./configure && make && make install)
|
||||
# type: custom
|
||||
# command: [required] Custom command to install and enable a module
|
||||
extensions_available:
|
||||
amqp:
|
||||
disabled: [7.3]
|
||||
@@ -663,6 +667,19 @@ extensions_available:
|
||||
type: builtin
|
||||
build_dep: [libicu-dev]
|
||||
run_dep: [libicu52]
|
||||
ioncube:
|
||||
disabled: [7.3]
|
||||
all:
|
||||
type: custom
|
||||
command: |
|
||||
EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||
&& wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \
|
||||
&& tar xvfz ioncube_loaders_lin_x86-64.tar.gz \
|
||||
&& cd ioncube \
|
||||
&& cp "ioncube_loader_lin_{{ php_version }}.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||
&& echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \
|
||||
build_dep: [wget]
|
||||
json:
|
||||
7.0:
|
||||
type: builtin
|
||||
|
||||
Reference in New Issue
Block a user