Skip to content

Commit 1764929

Browse files
committed
Added extension rdkafka to PHP 8.0 and PHP 8.1
1 parent 2d428c2 commit 1764929

5 files changed

Lines changed: 34 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Added extension `amqp` to PHP 8.0 and PHP 8.1 (#826)[https://github.com/cytopia/devilbox/issues/826]
1414
- Added extension `uploadprogress` to PHP 8.0 and PHP 8.1
1515
- Added extension `imagick` to PHP 8.0 and PHP 8.1
16+
- Added extension `rdkafka` to PHP 8.0 and PHP 8.1
1617
- Added extension `xlswriter` to PHP 8.1
1718
- Added extension `pdo_dblib` to PHP 8.1
1819
- Added extension `uuid` to all PHP versions (except 5.2)

Dockerfiles/mods/Dockerfile-8.0

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ RUN set -eux \
3636
libpq-dev \
3737
libpspell-dev \
3838
librabbitmq-dev \
39+
librdkafka-dev \
3940
libsasl2-dev \
4041
libsnmp-dev \
4142
libsodium-dev \
@@ -510,6 +511,17 @@ phpize \
510511
&& true
511512

512513

514+
# -------------------- Installing PHP Extension: rdkafka --------------------
515+
RUN set -eux \
516+
# Installation: Generic
517+
# Type: PECL extension
518+
# Default: Pecl command
519+
&& pecl install rdkafka \
520+
# Enabling
521+
&& docker-php-ext-enable rdkafka \
522+
&& true
523+
524+
513525
# -------------------- Installing PHP Extension: shmop --------------------
514526
RUN set -eux \
515527
# Installation: Generic
@@ -771,6 +783,7 @@ RUN set -eux \
771783
libpng16-16 \
772784
libpq5 \
773785
librabbitmq4 \
786+
librdkafka1 \
774787
libsybdb5 \
775788
libtidy5deb1 \
776789
libvpx6 \
@@ -945,6 +958,8 @@ RUN set -eux \
945958
&& php-fpm -m | grep -oiE '^redis$' \
946959
&& php -m | grep -oiE '^reflection$' \
947960
&& php-fpm -m | grep -oiE '^reflection$' \
961+
&& php -m | grep -oiE '^rdkafka$' \
962+
&& php-fpm -m | grep -oiE '^rdkafka$' \
948963
&& php -m | grep -oiE '^session$' \
949964
&& php-fpm -m | grep -oiE '^session$' \
950965
&& php -m | grep -oiE '^shmop$' \

Dockerfiles/mods/Dockerfile-8.1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ RUN set -eux \
3535
libpq-dev \
3636
libpspell-dev \
3737
librabbitmq-dev \
38+
librdkafka-dev \
3839
libsasl2-dev \
3940
libsnmp-dev \
4041
libsodium-dev \
@@ -477,6 +478,17 @@ phpize \
477478
&& true
478479

479480

481+
# -------------------- Installing PHP Extension: rdkafka --------------------
482+
RUN set -eux \
483+
# Installation: Generic
484+
# Type: PECL extension
485+
# Default: Pecl command
486+
&& pecl install rdkafka \
487+
# Enabling
488+
&& docker-php-ext-enable rdkafka \
489+
&& true
490+
491+
480492
# -------------------- Installing PHP Extension: shmop --------------------
481493
RUN set -eux \
482494
# Installation: Generic
@@ -722,6 +734,7 @@ RUN set -eux \
722734
libpng16-16 \
723735
libpq5 \
724736
librabbitmq4 \
737+
librdkafka1 \
725738
libsybdb5 \
726739
libtidy5deb1 \
727740
libvpx6 \
@@ -891,6 +904,8 @@ RUN set -eux \
891904
&& php-fpm -m | grep -oiE '^redis$' \
892905
&& php -m | grep -oiE '^reflection$' \
893906
&& php-fpm -m | grep -oiE '^reflection$' \
907+
&& php -m | grep -oiE '^rdkafka$' \
908+
&& php-fpm -m | grep -oiE '^rdkafka$' \
894909
&& php -m | grep -oiE '^session$' \
895910
&& php-fpm -m | grep -oiE '^session$' \
896911
&& php -m | grep -oiE '^shmop$' \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,12 @@ Check out this table to see which Docker image provides what PHP modules.
680680
<tr>
681681
<th>8.0</th>
682682
<td id="80-base">Core, ctype, curl, date, dom, FFI, 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>
683-
<td id="80-mods">amqp, apcu, bcmath, blackfire, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, mcrypt, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pdo_sqlsrv, pgsql, Phar, posix, pspell, psr, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, sqlsrv, standard, swoole, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, uuid, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
683+
<td id="80-mods">amqp, apcu, bcmath, blackfire, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, mcrypt, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pdo_sqlsrv, pgsql, Phar, posix, pspell, psr, rdkafka, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, sqlsrv, standard, swoole, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, uuid, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
684684
</tr>
685685
<tr>
686686
<th>8.1</th>
687687
<td id="81-base">Core, ctype, curl, date, dom, FFI, 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>
688-
<td id="81-mods">amqp, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, psr, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, uuid, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
688+
<td id="81-mods">amqp, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, psr, rdkafka, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, uuid, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
689689
</tr>
690690
</tbody>
691691
</table>

build/ansible/group_vars/all/mods.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ extensions_available:
946946
reflection:
947947
already_avail: [5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
948948
rdkafka:
949-
disabled: [5.2, 8.0, 8.1]
949+
disabled: [5.2]
950950
5.3:
951951
type: pecl
952952
version: 3.0.5

0 commit comments

Comments
 (0)