diff --git a/.gitignore b/.gitignore index dfb9e1d88..2d84d7da7 100644 --- a/.gitignore +++ b/.gitignore @@ -83,16 +83,16 @@ /cfg/php-fpm-7.4/*.conf # Ignore custom PHP-FPM startup scripts -/cfg/php-fpm-5.2/*.sh -/cfg/php-fpm-5.3/*.sh -/cfg/php-fpm-5.4/*.sh -/cfg/php-fpm-5.5/*.sh -/cfg/php-fpm-5.6/*.sh -/cfg/php-fpm-7.0/*.sh -/cfg/php-fpm-7.1/*.sh -/cfg/php-fpm-7.2/*.sh -/cfg/php-fpm-7.3/*.sh -/cfg/php-fpm-7.4/*.sh +/cfg/php-startup-5.2/*.sh +/cfg/php-startup-5.3/*.sh +/cfg/php-startup-5.4/*.sh +/cfg/php-startup-5.5/*.sh +/cfg/php-startup-5.6/*.sh +/cfg/php-startup-7.0/*.sh +/cfg/php-startup-7.1/*.sh +/cfg/php-startup-7.2/*.sh +/cfg/php-startup-7.3/*.sh +/cfg/php-startup-7.4/*.sh # Ignore custom PHP-FPM modules /mod/php-fpm-5.2/*.so diff --git a/cfg/php-startup-7.0/03-oracle-oci8-and-pdo_oci.sh-example b/cfg/php-startup-7.0/03-oracle-oci8-and-pdo_oci.sh-example new file mode 100755 index 000000000..72926e87a --- /dev/null +++ b/cfg/php-startup-7.0/03-oracle-oci8-and-pdo_oci.sh-example @@ -0,0 +1,39 @@ +#!/bin/bash +# +# https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/ +# + +#curl -sS http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 2>/dev/null | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - + +# Install 'alien' to install rpm packages +apt-get update -q +DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests alien + +# Instantclient (basic lite) +curl -o /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm + +# Instantclient (devel) +curl -o /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Install RPMs +alien -i /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm +alien -i /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Rempve RPMs +rm -f /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm +rm -f /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Necessary symlinks +ln -s /usr/lib/oracle/18.3/client64/lib/libmql1.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libipc1.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libnnz18.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libons.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libclntshcore.so.18.1 /usr/lib/ + +# Build and install PHP extension oci8 +docker-php-ext-configure oci8 --with-oci8=instantclient +docker-php-ext-install oci8 + +# Build and install PHP extension pdo_oci +docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/usr,18.3 +docker-php-ext-install pdo_oci diff --git a/cfg/php-startup-7.1/03-oracle-oci8-and-pdo_oci.sh-example b/cfg/php-startup-7.1/03-oracle-oci8-and-pdo_oci.sh-example new file mode 100755 index 000000000..72926e87a --- /dev/null +++ b/cfg/php-startup-7.1/03-oracle-oci8-and-pdo_oci.sh-example @@ -0,0 +1,39 @@ +#!/bin/bash +# +# https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/ +# + +#curl -sS http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 2>/dev/null | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - + +# Install 'alien' to install rpm packages +apt-get update -q +DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests alien + +# Instantclient (basic lite) +curl -o /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm + +# Instantclient (devel) +curl -o /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Install RPMs +alien -i /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm +alien -i /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Rempve RPMs +rm -f /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm +rm -f /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Necessary symlinks +ln -s /usr/lib/oracle/18.3/client64/lib/libmql1.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libipc1.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libnnz18.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libons.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libclntshcore.so.18.1 /usr/lib/ + +# Build and install PHP extension oci8 +docker-php-ext-configure oci8 --with-oci8=instantclient +docker-php-ext-install oci8 + +# Build and install PHP extension pdo_oci +docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/usr,18.3 +docker-php-ext-install pdo_oci diff --git a/cfg/php-startup-7.2/03-oracle-oci8-and-pdo_oci.sh-example b/cfg/php-startup-7.2/03-oracle-oci8-and-pdo_oci.sh-example new file mode 100755 index 000000000..72926e87a --- /dev/null +++ b/cfg/php-startup-7.2/03-oracle-oci8-and-pdo_oci.sh-example @@ -0,0 +1,39 @@ +#!/bin/bash +# +# https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/ +# + +#curl -sS http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 2>/dev/null | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - + +# Install 'alien' to install rpm packages +apt-get update -q +DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests alien + +# Instantclient (basic lite) +curl -o /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm + +# Instantclient (devel) +curl -o /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Install RPMs +alien -i /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm +alien -i /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Rempve RPMs +rm -f /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm +rm -f /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Necessary symlinks +ln -s /usr/lib/oracle/18.3/client64/lib/libmql1.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libipc1.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libnnz18.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libons.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libclntshcore.so.18.1 /usr/lib/ + +# Build and install PHP extension oci8 +docker-php-ext-configure oci8 --with-oci8=instantclient +docker-php-ext-install oci8 + +# Build and install PHP extension pdo_oci +docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/usr,18.3 +docker-php-ext-install pdo_oci diff --git a/cfg/php-startup-7.3/03-oracle-oci8-and-pdo_oci.sh-example b/cfg/php-startup-7.3/03-oracle-oci8-and-pdo_oci.sh-example new file mode 100755 index 000000000..72926e87a --- /dev/null +++ b/cfg/php-startup-7.3/03-oracle-oci8-and-pdo_oci.sh-example @@ -0,0 +1,39 @@ +#!/bin/bash +# +# https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/ +# + +#curl -sS http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 2>/dev/null | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - + +# Install 'alien' to install rpm packages +apt-get update -q +DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests alien + +# Instantclient (basic lite) +curl -o /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm + +# Instantclient (devel) +curl -o /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Install RPMs +alien -i /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm +alien -i /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Rempve RPMs +rm -f /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm +rm -f /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm + +# Necessary symlinks +ln -s /usr/lib/oracle/18.3/client64/lib/libmql1.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libipc1.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libnnz18.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libons.so /usr/lib/ +ln -s /usr/lib/oracle/18.3/client64/lib/libclntshcore.so.18.1 /usr/lib/ + +# Build and install PHP extension oci8 +docker-php-ext-configure oci8 --with-oci8=instantclient +docker-php-ext-install oci8 + +# Build and install PHP extension pdo_oci +docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/usr,18.3 +docker-php-ext-install pdo_oci