Skip to content

Commit

Permalink
Add Module: IonCube
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed May 21, 2018
1 parent 8ed060f commit 85f36d7
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 7 deletions.
11 changes: 11 additions & 0 deletions Dockerfiles/mods/Dockerfile-5.3
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ LABEL \
### Envs
###
ENV BUILD_DEPS \
wget \
librabbitmq-dev \
libbz2-dev \
libcurl4-openssl-dev \
Expand Down Expand Up @@ -116,6 +117,14 @@ RUN set -x \
${BUILD_DEPS} \
\
\
&& 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_5.3.so" "${EXTENSION_DIR}/ioncube.so" \
&& echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \
\
&& echo "/usr" | pecl install amqp \
&& docker-php-ext-enable amqp \
&& pecl install apcu-4.0.11 \
Expand Down Expand Up @@ -249,6 +258,8 @@ RUN set -x \
&& if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi

RUN set -x \
&& php -m | grep -oiE '^ionCube Loader$' \
&& php-fpm -m | grep -oiE '^ionCube Loader$' \
&& php -m | grep -oiE '^amqp$' \
&& php-fpm -m | grep -oiE '^amqp$' \
&& php -m | grep -oiE '^apcu$' \
Expand Down
11 changes: 11 additions & 0 deletions Dockerfiles/mods/Dockerfile-5.4
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ LABEL \
### Envs
###
ENV BUILD_DEPS \
wget \
librabbitmq-dev \
libbz2-dev \
libcurl4-openssl-dev \
Expand Down Expand Up @@ -116,6 +117,14 @@ RUN set -x \
${BUILD_DEPS} \
\
\
&& 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_5.4.so" "${EXTENSION_DIR}/ioncube.so" \
&& echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \
\
&& echo "/usr" | pecl install amqp \
&& docker-php-ext-enable amqp \
&& pecl install apcu-4.0.11 \
Expand Down Expand Up @@ -249,6 +258,8 @@ RUN set -x \
&& if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi

RUN set -x \
&& php -m | grep -oiE '^ionCube Loader$' \
&& php-fpm -m | grep -oiE '^ionCube Loader$' \
&& php -m | grep -oiE '^amqp$' \
&& php-fpm -m | grep -oiE '^amqp$' \
&& php -m | grep -oiE '^apcu$' \
Expand Down
11 changes: 11 additions & 0 deletions Dockerfiles/mods/Dockerfile-5.5
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ LABEL \
### Envs
###
ENV BUILD_DEPS \
wget \
librabbitmq-dev \
libbz2-dev \
libcurl4-openssl-dev \
Expand Down Expand Up @@ -118,6 +119,14 @@ RUN set -x \
${BUILD_DEPS} \
\
\
&& 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_5.5.so" "${EXTENSION_DIR}/ioncube.so" \
&& echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \
\
&& echo "/usr" | pecl install amqp \
&& docker-php-ext-enable amqp \
&& pecl install apcu-4.0.11 \
Expand Down Expand Up @@ -251,6 +260,8 @@ RUN set -x \
&& if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi

RUN set -x \
&& php -m | grep -oiE '^ionCube Loader$' \
&& php-fpm -m | grep -oiE '^ionCube Loader$' \
&& php -m | grep -oiE '^amqp$' \
&& php-fpm -m | grep -oiE '^amqp$' \
&& php -m | grep -oiE '^apcu$' \
Expand Down
11 changes: 11 additions & 0 deletions Dockerfiles/mods/Dockerfile-5.6
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ LABEL \
### Envs
###
ENV BUILD_DEPS \
wget \
librabbitmq-dev \
libbz2-dev \
libcurl4-openssl-dev \
Expand Down Expand Up @@ -120,6 +121,14 @@ RUN set -x \
${BUILD_DEPS} \
\
\
&& 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_5.6.so" "${EXTENSION_DIR}/ioncube.so" \
&& echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \
\
&& echo "/usr" | pecl install amqp \
&& docker-php-ext-enable amqp \
&& pecl install apcu-4.0.11 \
Expand Down Expand Up @@ -253,6 +262,8 @@ RUN set -x \
&& if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi

RUN set -x \
&& php -m | grep -oiE '^ionCube Loader$' \
&& php-fpm -m | grep -oiE '^ionCube Loader$' \
&& php -m | grep -oiE '^amqp$' \
&& php-fpm -m | grep -oiE '^amqp$' \
&& php -m | grep -oiE '^apcu$' \
Expand Down
11 changes: 11 additions & 0 deletions Dockerfiles/mods/Dockerfile-7.0
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ LABEL \
### Envs
###
ENV BUILD_DEPS \
wget \
librabbitmq-dev \
libbz2-dev \
libcurl4-openssl-dev \
Expand Down Expand Up @@ -118,6 +119,14 @@ RUN set -x \
${BUILD_DEPS} \
\
\
&& 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_7.0.so" "${EXTENSION_DIR}/ioncube.so" \
&& echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \
\
&& echo "/usr" | pecl install amqp \
&& docker-php-ext-enable amqp \
&& pecl install apcu \
Expand Down Expand Up @@ -256,6 +265,8 @@ RUN set -x \
&& if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi

RUN set -x \
&& php -m | grep -oiE '^ionCube Loader$' \
&& php-fpm -m | grep -oiE '^ionCube Loader$' \
&& php -m | grep -oiE '^amqp$' \
&& php-fpm -m | grep -oiE '^amqp$' \
&& php -m | grep -oiE '^apcu$' \
Expand Down
11 changes: 11 additions & 0 deletions Dockerfiles/mods/Dockerfile-7.1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ LABEL \
### Envs
###
ENV BUILD_DEPS \
wget \
librabbitmq-dev \
libbz2-dev \
libcurl4-openssl-dev \
Expand Down Expand Up @@ -118,6 +119,14 @@ RUN set -x \
${BUILD_DEPS} \
\
\
&& 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_7.1.so" "${EXTENSION_DIR}/ioncube.so" \
&& echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \
\
&& echo "/usr" | pecl install amqp \
&& docker-php-ext-enable amqp \
&& pecl install apcu \
Expand Down Expand Up @@ -258,6 +267,8 @@ RUN set -x \
&& if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi

RUN set -x \
&& php -m | grep -oiE '^ionCube Loader$' \
&& php-fpm -m | grep -oiE '^ionCube Loader$' \
&& php -m | grep -oiE '^amqp$' \
&& php-fpm -m | grep -oiE '^amqp$' \
&& php -m | grep -oiE '^apcu$' \
Expand Down
11 changes: 11 additions & 0 deletions Dockerfiles/mods/Dockerfile-7.2
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ LABEL \
### Envs
###
ENV BUILD_DEPS \
wget \
librabbitmq-dev \
libbz2-dev \
libcurl4-openssl-dev \
Expand Down Expand Up @@ -119,6 +120,14 @@ RUN set -x \
${BUILD_DEPS} \
\
\
&& 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_7.2.so" "${EXTENSION_DIR}/ioncube.so" \
&& echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \
\
&& pecl install amqp \
&& docker-php-ext-enable amqp \
&& pecl install apcu \
Expand Down Expand Up @@ -261,6 +270,8 @@ RUN set -x \
&& if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi

RUN set -x \
&& php -m | grep -oiE '^ionCube Loader$' \
&& php-fpm -m | grep -oiE '^ionCube Loader$' \
&& php -m | grep -oiE '^amqp$' \
&& php-fpm -m | grep -oiE '^amqp$' \
&& php -m | grep -oiE '^apcu$' \
Expand Down
Loading

0 comments on commit 85f36d7

Please sign in to comment.