-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from hhoechtl/ioncube
[TASK] add ioncube to all php images
- Loading branch information
Showing
72 changed files
with
1,225 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
docker/php-official/5.6/conf/provision/bootstrap.d/30-setup-ioncube.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
docker/php-official/7.0/conf/provision/bootstrap.d/30-setup-ioncube.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
docker/php-official/7.1/conf/provision/bootstrap.d/30-setup-ioncube.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.