Permalink
Browse files

[TASK] add ioncube to all php images

Resolves #52
  • Loading branch information...
hhoechtl committed Oct 8, 2018
1 parent dbf62a0 commit b75cc152cab282abb7af07c2a4af8adf39e0007e
Showing with 1,225 additions and 0 deletions.
  1. +3 −0 docker/php-apache-dev/centos-7-php7/Dockerfile
  2. +3 −0 docker/php-apache-dev/debian-8-php7/Dockerfile
  3. +3 −0 docker/php-apache-dev/debian-9/Dockerfile
  4. +3 −0 docker/php-apache-dev/ubuntu-16.04/Dockerfile
  5. +3 −0 docker/php-apache-dev/ubuntu-16.10/Dockerfile
  6. +3 −0 docker/php-apache-dev/ubuntu-17.04/Dockerfile
  7. +3 −0 docker/php-apache-dev/ubuntu-17.10/Dockerfile
  8. +3 −0 docker/php-apache-dev/ubuntu-18.04/Dockerfile
  9. +3 −0 docker/php-dev/centos-7-php7/Dockerfile
  10. +3 −0 docker/php-dev/debian-8-php7/Dockerfile
  11. +3 −0 docker/php-dev/debian-9/Dockerfile
  12. +3 −0 docker/php-dev/ubuntu-16.04/Dockerfile
  13. +3 −0 docker/php-dev/ubuntu-16.10/Dockerfile
  14. +3 −0 docker/php-dev/ubuntu-17.04/Dockerfile
  15. +3 −0 docker/php-dev/ubuntu-17.10/Dockerfile
  16. +3 −0 docker/php-dev/ubuntu-18.04/Dockerfile
  17. +3 −0 docker/php-nginx-dev/centos-7-php7/Dockerfile
  18. +3 −0 docker/php-nginx-dev/debian-8-php7/Dockerfile
  19. +3 −0 docker/php-nginx-dev/debian-9/Dockerfile
  20. +3 −0 docker/php-nginx-dev/ubuntu-16.04/Dockerfile
  21. +3 −0 docker/php-nginx-dev/ubuntu-16.10/Dockerfile
  22. +3 −0 docker/php-nginx-dev/ubuntu-17.04/Dockerfile
  23. +3 −0 docker/php-nginx-dev/ubuntu-17.10/Dockerfile
  24. +3 −0 docker/php-nginx-dev/ubuntu-18.04/Dockerfile
  25. +1 −0 docker/php-official/5.6/conf/provision/bootstrap.d/11-php-conf.sh
  26. +41 −0 docker/php-official/5.6/conf/provision/bootstrap.d/30-setup-ioncube.sh
  27. +1 −0 docker/php-official/7.0/conf/provision/bootstrap.d/11-php-conf.sh
  28. +41 −0 docker/php-official/7.0/conf/provision/bootstrap.d/30-setup-ioncube.sh
  29. +1 −0 docker/php-official/7.1/conf/provision/bootstrap.d/11-php-conf.sh
  30. +41 −0 docker/php-official/7.1/conf/provision/bootstrap.d/30-setup-ioncube.sh
  31. +1 −0 docker/php-official/7.2/conf/provision/bootstrap.d/11-php-conf.sh
  32. +41 −0 docker/php-official/7.2/conf/provision/bootstrap.d/30-setup-ioncube.sh
  33. +10 −0 docker/php/alpine-php5/conf/provision/bootstrap.d/11-php-conf.sh
  34. +41 −0 docker/php/alpine-php5/conf/provision/bootstrap.d/30-setup-ioncube.sh
  35. +10 −0 docker/php/alpine-php7/conf/provision/bootstrap.d/11-php-conf.sh
  36. +41 −0 docker/php/alpine-php7/conf/provision/bootstrap.d/30-setup-ioncube.sh
  37. +10 −0 docker/php/centos-7-php56/conf/provision/bootstrap.d/11-php-conf.sh
  38. +41 −0 docker/php/centos-7-php56/conf/provision/bootstrap.d/30-setup-ioncube.sh
  39. +10 −0 docker/php/centos-7-php7/conf/provision/bootstrap.d/11-php-conf.sh
  40. +41 −0 docker/php/centos-7-php7/conf/provision/bootstrap.d/30-setup-ioncube.sh
  41. +10 −0 docker/php/centos-7/conf/provision/bootstrap.d/11-php-conf.sh
  42. +41 −0 docker/php/centos-7/conf/provision/bootstrap.d/30-setup-ioncube.sh
  43. +10 −0 docker/php/debian-7/conf/provision/bootstrap.d/11-php-conf.sh
  44. +41 −0 docker/php/debian-7/conf/provision/bootstrap.d/30-setup-ioncube.sh
  45. +10 −0 docker/php/debian-8-php7/conf/provision/bootstrap.d/11-php-conf.sh
  46. +41 −0 docker/php/debian-8-php7/conf/provision/bootstrap.d/30-setup-ioncube.sh
  47. +10 −0 docker/php/debian-8/conf/provision/bootstrap.d/11-php-conf.sh
  48. +41 −0 docker/php/debian-8/conf/provision/bootstrap.d/30-setup-ioncube.sh
  49. +10 −0 docker/php/debian-9/conf/provision/bootstrap.d/11-php-conf.sh
  50. +41 −0 docker/php/debian-9/conf/provision/bootstrap.d/30-setup-ioncube.sh
  51. +10 −0 docker/php/ubuntu-12.04/conf/provision/bootstrap.d/11-php-conf.sh
  52. +41 −0 docker/php/ubuntu-12.04/conf/provision/bootstrap.d/30-setup-ioncube.sh
  53. +10 −0 docker/php/ubuntu-14.04/conf/provision/bootstrap.d/11-php-conf.sh
  54. +41 −0 docker/php/ubuntu-14.04/conf/provision/bootstrap.d/30-setup-ioncube.sh
  55. +10 −0 docker/php/ubuntu-15.04/conf/provision/bootstrap.d/11-php-conf.sh
  56. +41 −0 docker/php/ubuntu-15.04/conf/provision/bootstrap.d/30-setup-ioncube.sh
  57. +10 −0 docker/php/ubuntu-15.10/conf/provision/bootstrap.d/11-php-conf.sh
  58. +41 −0 docker/php/ubuntu-15.10/conf/provision/bootstrap.d/30-setup-ioncube.sh
  59. +10 −0 docker/php/ubuntu-16.04/conf/provision/bootstrap.d/11-php-conf.sh
  60. +41 −0 docker/php/ubuntu-16.04/conf/provision/bootstrap.d/30-setup-ioncube.sh
  61. +10 −0 docker/php/ubuntu-16.10/conf/provision/bootstrap.d/11-php-conf.sh
  62. +41 −0 docker/php/ubuntu-16.10/conf/provision/bootstrap.d/30-setup-ioncube.sh
  63. +10 −0 docker/php/ubuntu-17.04/conf/provision/bootstrap.d/11-php-conf.sh
  64. +41 −0 docker/php/ubuntu-17.04/conf/provision/bootstrap.d/30-setup-ioncube.sh
  65. +10 −0 docker/php/ubuntu-17.10/conf/provision/bootstrap.d/11-php-conf.sh
  66. +41 −0 docker/php/ubuntu-17.10/conf/provision/bootstrap.d/30-setup-ioncube.sh
  67. +10 −0 docker/php/ubuntu-18.04/conf/provision/bootstrap.d/11-php-conf.sh
  68. +41 −0 docker/php/ubuntu-18.04/conf/provision/bootstrap.d/30-setup-ioncube.sh
  69. +10 −0 provisioning/php/general/provision/bootstrap.d/11-php-conf.sh
  70. +41 −0 provisioning/php/general/provision/bootstrap.d/30-setup-ioncube.sh
  71. +1 −0 provisioning/php/official/provision/bootstrap.d/11-php-conf.sh
  72. +15 −0 template/Dockerfile/images/php7-dev.jinja2
@@ -24,6 +24,9 @@ RUN set -x \
php70w-pecl-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php7.0-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -16,6 +16,9 @@ RUN set -x \
php70w-pecl-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -20,6 +20,9 @@ RUN set -x \
php7.0-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -20,6 +20,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -20,6 +20,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -20,6 +20,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -20,6 +20,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -20,6 +20,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -20,6 +20,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -24,6 +24,9 @@ RUN set -x \
php70w-pecl-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php7.0-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -28,6 +28,9 @@ RUN set -x \
php-xdebug \
blackfire-php \
blackfire-agent \
# Tools
nano \
vim \
# Enable php development services
&& docker-service enable syslog \
&& docker-service enable postfix \
@@ -7,3 +7,4 @@ PHP_MAIN_CONF=/usr/local/etc/php-fpm.conf
PHP_POOL_CONF=www.conf
PHP_POOL_DIR=/usr/local/etc/php-fpm.d
PHP_FPM_BIN=/usr/local/sbin/php-fpm
PHP_MOD_INI_DIR=/usr/local/etc/php/conf.d
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
echo "Installing ionCube loader"
DOWNLOAD_URL="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz"
TMP_FILE="/tmp/ioncube_loaders.tar.gz"
echo "Downloading ..."
curl -sS ${DOWNLOAD_URL} -o ${TMP_FILE}
echo "Unpacking ..."
tar -xzf ${TMP_FILE} -C /tmp
PHP_VERSION=`php -v | head -1 | grep -o 'PHP [0-9].[0-9]' | sed -r 's/PHP //g'`
PHP_EXTENSION_DIR=`php -i | grep -o -m 1 'extension_dir .* =' | sed -r 's/extension_dir => //g' | sed -r 's/ =//g'`
MOD_INI="${PHP_MOD_INI_DIR}/00-ioncube.ini"
SO_FILE="${PHP_EXTENSION_DIR}/ioncube_loader_lin_${PHP_VERSION}.so"
echo "PHP-VERSION: ${PHP_VERSION}"
echo "PHP-EXTENSION-DIR: ${PHP_EXTENSION_DIR}"
echo "Installing ${SO_FILE}"
cp "/tmp/ioncube/ioncube_loader_lin_${PHP_VERSION}.so" ${SO_FILE}
echo "Writing module ini"
echo "[ioncube]" > ${MOD_INI}
echo "zend_extension = ${SO_FILE}" >> ${MOD_INI}
echo "; priority=01" >> ${MOD_INI}
echo "Cleaning up"
rm -rf $TMP_FILE
rm -rf /tmp/ioncube
echo "Enabling ionCube PHP module"
case "$IMAGE_FAMILY" in
Debian|Ubuntu)
# Enable ionCube (if available)
if [[ -f "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" ]]; then
ln -sf "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" "${PHP_ETC_DIR}/cli/conf.d/00-ioncube.ini"
ln -sf "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" "${PHP_ETC_DIR}/fpm/conf.d/00-ioncube.ini"
fi
;;
esac
@@ -7,3 +7,4 @@ PHP_MAIN_CONF=/usr/local/etc/php-fpm.conf
PHP_POOL_CONF=www.conf
PHP_POOL_DIR=/usr/local/etc/php-fpm.d
PHP_FPM_BIN=/usr/local/sbin/php-fpm
PHP_MOD_INI_DIR=/usr/local/etc/php/conf.d
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
echo "Installing ionCube loader"
DOWNLOAD_URL="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz"
TMP_FILE="/tmp/ioncube_loaders.tar.gz"
echo "Downloading ..."
curl -sS ${DOWNLOAD_URL} -o ${TMP_FILE}
echo "Unpacking ..."
tar -xzf ${TMP_FILE} -C /tmp
PHP_VERSION=`php -v | head -1 | grep -o 'PHP [0-9].[0-9]' | sed -r 's/PHP //g'`
PHP_EXTENSION_DIR=`php -i | grep -o -m 1 'extension_dir .* =' | sed -r 's/extension_dir => //g' | sed -r 's/ =//g'`
MOD_INI="${PHP_MOD_INI_DIR}/00-ioncube.ini"
SO_FILE="${PHP_EXTENSION_DIR}/ioncube_loader_lin_${PHP_VERSION}.so"
echo "PHP-VERSION: ${PHP_VERSION}"
echo "PHP-EXTENSION-DIR: ${PHP_EXTENSION_DIR}"
echo "Installing ${SO_FILE}"
cp "/tmp/ioncube/ioncube_loader_lin_${PHP_VERSION}.so" ${SO_FILE}
echo "Writing module ini"
echo "[ioncube]" > ${MOD_INI}
echo "zend_extension = ${SO_FILE}" >> ${MOD_INI}
echo "; priority=01" >> ${MOD_INI}
echo "Cleaning up"
rm -rf $TMP_FILE
rm -rf /tmp/ioncube
echo "Enabling ionCube PHP module"
case "$IMAGE_FAMILY" in
Debian|Ubuntu)
# Enable ionCube (if available)
if [[ -f "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" ]]; then
ln -sf "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" "${PHP_ETC_DIR}/cli/conf.d/00-ioncube.ini"
ln -sf "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" "${PHP_ETC_DIR}/fpm/conf.d/00-ioncube.ini"
fi
;;
esac
@@ -7,3 +7,4 @@ PHP_MAIN_CONF=/usr/local/etc/php-fpm.conf
PHP_POOL_CONF=www.conf
PHP_POOL_DIR=/usr/local/etc/php-fpm.d
PHP_FPM_BIN=/usr/local/sbin/php-fpm
PHP_MOD_INI_DIR=/usr/local/etc/php/conf.d
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
echo "Installing ionCube loader"
DOWNLOAD_URL="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz"
TMP_FILE="/tmp/ioncube_loaders.tar.gz"
echo "Downloading ..."
curl -sS ${DOWNLOAD_URL} -o ${TMP_FILE}
echo "Unpacking ..."
tar -xzf ${TMP_FILE} -C /tmp
PHP_VERSION=`php -v | head -1 | grep -o 'PHP [0-9].[0-9]' | sed -r 's/PHP //g'`
PHP_EXTENSION_DIR=`php -i | grep -o -m 1 'extension_dir .* =' | sed -r 's/extension_dir => //g' | sed -r 's/ =//g'`
MOD_INI="${PHP_MOD_INI_DIR}/00-ioncube.ini"
SO_FILE="${PHP_EXTENSION_DIR}/ioncube_loader_lin_${PHP_VERSION}.so"
echo "PHP-VERSION: ${PHP_VERSION}"
echo "PHP-EXTENSION-DIR: ${PHP_EXTENSION_DIR}"
echo "Installing ${SO_FILE}"
cp "/tmp/ioncube/ioncube_loader_lin_${PHP_VERSION}.so" ${SO_FILE}
echo "Writing module ini"
echo "[ioncube]" > ${MOD_INI}
echo "zend_extension = ${SO_FILE}" >> ${MOD_INI}
echo "; priority=01" >> ${MOD_INI}
echo "Cleaning up"
rm -rf $TMP_FILE
rm -rf /tmp/ioncube
echo "Enabling ionCube PHP module"
case "$IMAGE_FAMILY" in
Debian|Ubuntu)
# Enable ionCube (if available)
if [[ -f "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" ]]; then
ln -sf "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" "${PHP_ETC_DIR}/cli/conf.d/00-ioncube.ini"
ln -sf "${PHP_ETC_DIR}/mods-available/00-ioncube.ini" "${PHP_ETC_DIR}/fpm/conf.d/00-ioncube.ini"
fi
;;
esac
@@ -7,3 +7,4 @@ PHP_MAIN_CONF=/usr/local/etc/php-fpm.conf
PHP_POOL_CONF=www.conf
PHP_POOL_DIR=/usr/local/etc/php-fpm.d
PHP_FPM_BIN=/usr/local/sbin/php-fpm
PHP_MOD_INI_DIR=/usr/local/etc/php/conf.d
Oops, something went wrong.

0 comments on commit b75cc15

Please sign in to comment.