Skip to content

Commit ff7b52a

Browse files
committed
Add mongodb module to PHP 8.0
1 parent 244605f commit ff7b52a

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

Dockerfiles/mods/Dockerfile-8.0

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,23 @@ RUN set -x \
236236
&& (rm -rf /usr/local/lib/php/test/pdo_mysql || true) \
237237
&& (rm -rf /usr/local/lib/php/doc/pdo_mysql || true) \
238238
\
239+
# ---- Installing PHP Extension: pdo_oci ----
240+
&& rpm --import http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 \
241+
&& curl -o /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm \
242+
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 \
243+
&& curl -o /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm \
244+
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 \
245+
&& alien -i /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm \
246+
&& alien -i /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm \
247+
&& rm -f /tmp/oracle-instantclient18.3-basiclite-18.3.0.0.0-2.x86_64.rpm \
248+
&& rm -f /tmp/oracle-instantclient18.3-devel-18.3.0.0.0-2.x86_64.rpm \
249+
&& (ln -s /usr/lib/oracle/18.3/client64/lib/*.so* /usr/lib/ || true) \
250+
\
251+
&& /usr/local/bin/docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/usr/lib/oracle/18.3/client64/lib/,18.3 \
252+
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_oci \
253+
&& (rm -rf /usr/local/lib/php/test/pdo_oci || true) \
254+
&& (rm -rf /usr/local/lib/php/doc/pdo_oci || true) \
255+
\
239256
# ---- Installing PHP Extension: pdo_pgsql ----
240257
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_pgsql \
241258
&& (rm -rf /usr/local/lib/php/test/pdo_pgsql || true) \
@@ -464,6 +481,8 @@ RUN set -x \
464481
&& php-fpm -m | grep -oiE '^pdo_firebird$' \
465482
&& php -m | grep -oiE '^pdo_mysql$' \
466483
&& php-fpm -m | grep -oiE '^pdo_mysql$' \
484+
&& php -m | grep -oiE '^pdo_oci$' \
485+
&& php-fpm -m | grep -oiE '^pdo_oci$' \
467486
&& php -m | grep -oiE '^pdo_pgsql$' \
468487
&& php-fpm -m | grep -oiE '^pdo_pgsql$' \
469488
&& php -m | grep -oiE '^pdo_sqlite$' \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ Check out this table to see which Docker image provides what PHP modules.
604604
<tr>
605605
<th>8.0</th>
606606
<td id="80-base">Core, ctype, curl, date, dom, fileinfo, filter, ftp, hash, iconv, json, libxml, mbstring, mysqlnd, openssl, pcre, PDO, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zlib</td>
607-
<td id="80-mods">bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, interbase, intl, json, ldap, libxml, mbstring, memcached, mysqli, mysqlnd, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, recode, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib</td>
607+
<td id="80-mods">bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, interbase, intl, json, ldap, libxml, mbstring, memcached, mongodb, mysqli, mysqlnd, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, recode, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib</td>
608608
</tr>
609609
</tbody>
610610
</table>

build/ansible/group_vars/all.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,10 @@ extensions_available:
12751275
configure: --with-zlib-dir=/usr
12761276
build_dep: [zlib1g-dev]
12771277
pdo_oci:
1278-
disabled: [5.2, 5.3, 5.4, 5.5, 5.6, 8.0]
1278+
disabled: [5.2, 5.3, 5.4, 5.5, 5.6]
1279+
8.0:
1280+
type: builtin
1281+
configure: --with-pdo-oci=instantclient,/usr/lib/oracle/18.3/client64/lib/,18.3
12791282
7.4:
12801283
type: builtin
12811284
configure: --with-pdo-oci=instantclient,/usr/lib/oracle/18.3/client64/lib/,18.3

0 commit comments

Comments
 (0)